在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:git-ftp/git-ftp开源软件地址:https://github.com/git-ftp/git-ftp开源编程语言:Shell 74.2%开源软件介绍:Git-ftp -- uploads to FTP servers the Git wayIf 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. # 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 Further Reading
Limitations
ContributionsDon'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 CopyrightThis application is licensed under GNU General Public License, Version 3.0 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论