Created
June 24, 2020 06:44
-
-
Save dwihujianto/fc226e3f8f59e9911a368012de33ffac to your computer and use it in GitHub Desktop.
Deploy with ftp init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment