zjunebao
2/18/2019 - 1:56 PM

git ftp

# installation
# check the website
https://github.com/git-ftp/git-ftp/blob/master/INSTALL.md

# config
git config git-ftp.dev.url ftp://yourftpsite
git config git-ftp.dev.user theusername
git config git-ftp.dev.password thepassword
git config git-ftp.dev.synroot /var/www/
git config git-ftp.dev.key ~/.ssh/id_rsa

# init
git ftp init -s dev

# push
git ftp push -s dev

# short 
git ftp init -u username -p password ftp://site