Skip to content

Instantly share code, notes, and snippets.

@dwihujianto
Created June 24, 2020 06:44
Show Gist options
  • Save dwihujianto/fc226e3f8f59e9911a368012de33ffac to your computer and use it in GitHub Desktop.
Save dwihujianto/fc226e3f8f59e9911a368012de33ffac to your computer and use it in GitHub Desktop.
Deploy with ftp init
# 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