+1
日增长
5,632
stars
694
forks
139
watchers
179
prs
499
issues
14
releases
README
Git-ftp -- uploads to FTP servers the Git way ============================================= If you use Git and you need to upload your files to an FTP server, Git-ftp can save you some time and bandwidth by uploading only those files that changed since the last upload. It keeps track of the uploaded files by storing the commit id in a log file on the server. It uses Git to determine which local files have changed. You can easily deploy another branch or go back in the Git history to upload an older version. sh Setup git config git-ftp.url "ftp://ftp.example.net:21/public_html" git config git-ftp.user "ftp-user" git config git-ftp.password "secr3t" Upload all files git ftp init Or if the files are already there git ftp catchup Work and deploy echo "new content" index.txt git commit index.txt -m "Add new content" git ftp push 1 file to sync: [1 of 1] Buffered for upload 'index.txt'. Uploading ... Last deployment changed to ded01b27e5c785fb251150805308d3d0f8117387. If you encounter any problems, add the -v or -vv option to see more output. The manual may answer some of your questions as well. Further Reading --------------- Read the manual for more options, features and examples. See the installation instructions for your system. Checkout the changelog. Check [git-ftp issues on GitHub] for open issues. Follow this project on twitter [@gitftp]. Deploy with git-ftp and GitHub Actions Deploy with git-ftp and Bitbucket Pipelines (video tutorial). Limitations ----------- Windows and OS X: I am very limited in testing on Windows and OS X. Thanks for helping me out fixing bugs on these platforms. git-ftp as deployment tool: git-ftp was not designed as centralized deployment tool. While a commit is being pushed and uploaded to the FTP server, all files belonging to that revision must remain untouched until git-ftp has successfully finished the upload. Otherwise, the contents of the uploaded file will not match the contents of the file referenced in the commit. Contributions ------------- Don't hesitate to improve this tool. Don't forget to add yourself to the AUTHORS file. The core functionality is unit tested using shunit2. You can find the tests in tests/. Copyright --------- This application is licensed under [GNU General Public License, Version 3.0] [git-ftp issues on GitHub]: http://github.com/git-ftp/git-ftp/issues [GNU General Public License, Version 3.0]: http://www.gnu.org/licenses/gpl-3.0-standalone.html [@gitftp]: https://twitter.com/gitftp
Top issues
#74Very slow uploads files31 comments · 2014-03-14#464Failed to init git-ftp28 comments · 2018-08-01#352Git-ftp just the contents of a directory13 comments · 2017-04-28#322Uploaded file has 0 bytes13 comments · 2017-01-23#578It's taking too much time to deploy12 comments · 2020-06-03#522Unrecognised option produces wrong error message11 comments · 2019-06-05#283.git-ftp-include files are not being pushed11 comments · 2016-08-20#452Protocol 'sftp' not supported by curl10 comments · 2018-06-04
Latest release
Better error handling 1.6.0 2020-02-03Change exit code when remote cannot be accessed from 5 (ERROR_DOWNLOAD) to 4 (ERROR_UPLOAD) Fix directory creation with SFTP Fix submodule handling Fix/Add support for nested branch names by allowing / in scope names Pass insecure-flag to submodules Pass ssh-keys to submodules if used Add support for config disable-epsv and no-commit Allow true and false for boolean configurations (insecure, disable-epsv, no-commit) Add support for option --insecure for LFTP actions (download and pull) Add support for FTPES for LFTP actions (download and pull) Add better error messages for