How to setup Git on local network?

前端 未结 4 1851
北恋
北恋 2020-12-09 04:01

I downloaded Git setup and trying to setup for computers in my network. I searched for the process but I found it for to host code on line on github.com. I found a few links

4条回答
  •  星月不相逢
    2020-12-09 04:11

    You have to create a repository on the server side. Go to the folder which should be the repository and execute:

    git init --bare
    

    Then you have to clone the repository on your client with:

    git clone user@gitserver:/path/to/your/folder
    

    Watch this for further information.

提交回复
热议问题