Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up a repository using git-ftp?

Tags:

git

ftp

git-ftp

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

like image 462
Naghi Attila Avatar asked Dec 05 '13 11:12

Naghi Attila


1 Answers

To establish git FTP push Please follow the steps.

  1. First Install GIT in window i.e. https://gitforwindows.org/

  2. 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

  3. 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

like image 52
Muhammad Wasim Akram Avatar answered Oct 05 '22 05:10

Muhammad Wasim Akram