I'm a newbie so please explain how to set up a repository?
I installed git-ftp.
I tried : git ftp init -u my_User-p my_Pass - ftp://host.example.com/public_html
but I got this error message :
fatal : Not a git repository (or any of the parent directories): .git
fatal : Not a Git project? Existing ....
terminal screenshot
To establish git FTP push Please follow the steps.
First Install GIT in window i.e. https://gitforwindows.org/
After doing this, run Git bash as Administrator and write the following command.
curl https://raw.githubusercontent.com/git-ftp/git-ftp/master/git-ftp > /bin/git-ftp chmod 755 /bin/git-ftp
After this add these commands on cmd
a) git config git-ftp.url "ftp://ftp.domain.com:21"
b) git config git-ftp.user "[email protected]"
c) git config git-ftp.password "YourPassword"
d) git ftp catchup
Please keep in mind if you have same code on Git and on Cpanel then Use this command
git ftp catchup
If your Code is not same then simply run below command
git ftp push
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With