Skip to content

Instantly share code, notes, and snippets.

@apps-online
Created August 23, 2023 17:14
Show Gist options
  • Save apps-online/082d5df176c0952cdf43a6f949f06685 to your computer and use it in GitHub Desktop.
Save apps-online/082d5df176c0952cdf43a6f949f06685 to your computer and use it in GitHub Desktop.
git-ftp - Debian

git-ftp - (Linux/Debian)

apt install git-ftp

1) Set up a user by typing:

git config git-ftp.user 'FTPUserName'

2) Configure your server's FTP path:

git config git-ftp.url ftp.example.net/public_html/optional1 /optional2

NOTE: It is interesting to inform the root folder of your server, ex: public_html. You can enter as many subdirectories as you want:

/optional1

/optional2

3) Set up a password:

git config git-ftp.password 'yourFTPPassword'

4) When submitting the project for the first time to your server you should run:

git ftp init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment