Setup Git Remote SSH (git-upload-pack / git-receive-pack)

后端 未结 2 1062
不知归路
不知归路 2021-01-19 08:59

I have a server with SSH access and I want to place a Git origin repo there. I just created a --bare --shared repo locally and copied it to the server per SCP. Now I wanted

2条回答
  •  佛祖请我去吃肉
    2021-01-19 09:58

    You need the binaries git-upload-pack & git-receive-pack in the path on the remote while an ssh is being executed.

    If not configure them for every remote link in your repository like this

    git config remote.origin.uploadpack /somepath/git/git-upload-pack
    git config remote.origin.receivepack /somepath/git/git-receive-pack
    

    where origin is the remote.

提交回复
热议问题