I configure GIT on my server when I find SSH on my server:
ssh -i /path/to/key -p 30000 user@1.1.1.1
Now I configure GIT on the server, and I install REMOTE as follows:
remote add origin ssh://user@1.1.1.1:30000/path/to/git/repo/proj1
I get an error message:
push origin There are no general links and are not specified; nothing to do. Perhaps you should specify a branch such as "master." fatal: the far end unexpectedly hung up error: could not push some links to 'ssh: // user@1.1.1.1 : 30000 / path / to / git / repos / proj1'
So far in my local repo I am:
touch .gitignore
git add .
git commit -m 'init'
And my server has git in it.
UPDATE
git push origin
git push origin
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'ssh://git.myhost/home/myuser/gitrepos/csf'
My .ssh / config:
Host git.myhost
User myuser
Hostname 1.2.3.4
Port 30000
IdentityFile /home/myuser/.ssh/key_for_git
source
share