我只想上传(仅使用 ftp)到我的服务器更改。我在本地有一个可用的 git 存储库。但我想不出任何使用 ftp 推送的方法。
我可以使用 git push 发送其他主机,因为它允许 ssh,但是这个主机只允许 ftp。
最佳答案
git-ftp脚本正是这样做的:
git-ftp by René Moser is a simple shell script for doing FTP the Git way. Use git-ftp.sh to upload only the Git tracked files to a FTP server, which have changed since the last upload. This saves time and bandwith. Even if you play with different branches, git-ftp.sh knows which files are different. No ordinary FTP client can do that.
关于git - 如何使用 ftp 进行 git push?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5886363/