I followed this tutorial (in french), which is very well explained and understandable. I have knowledge of GIT, because I use my own server to version my projects in Gitlab.
I am asked to see the progress of a project. So I try for some days to install GIT on a shared host OVH (PRO account).
The final goal is to reproduce what is explained in the tutorial, and merge the code directly on the OVH server.
I follow the steps.
- I initializes the git on the server :
git init --bare
- I then created a local folder, and I cling it to the remote git :
git remote add origin ssh://user@ftp.domain_name.com/folder/test.git
- Then I try to push the local code with the remote :
git push origin master
And I get the following error : fatal: protocol error: bad line length character: Usin
What is this error? Why do I get this, whatever the method used?
EDIT :
$ GIT_TRACE=2 GIT_TRACE_PACKET=2 git push origin master
10:53:29.947071 git.c:348 trace: built-in: git 'push' 'origin' 'master'
10:53:29.947071 run-command.c:335 trace: run_command: 'C:\Program Files (x86)\PuTTY\plink.exe' 'user@ftp.domaine_name.com' 'git-receive-pack '\''/folder/test.git'\'''
fatal: protocol error: bad line length character: Usin
EDIT 2 : Running another commands :
ssh user@ftp.domain_name.com git-receive-pack folder/test.git
00700000000000000000000000000000000000000000 capabilities^{} report-status delete-refs side-band-64k ofs-delta
0000
Or (from the root /folder
):
ssh user@ftp.domain_name.com git-receive-pack /folder/test.git
fatal: '/folder/test.git' does not appear to be a git repository
And if I do a ls
in the remote git folder :
~/folder/test.git $ ls
branches config description HEAD hooks info objects refs