Using git as a centralized version server

后端 未结 5 1173
悲哀的现实
悲哀的现实 2021-02-04 17:21

I currently use svn at work.

Our setup is: everyone has a working copy and we commit to a svn server served by apache2.

So I commit changed, the other update, an

5条回答
  •  走了就别回头了
    2021-02-04 18:11

    Yes it's possible.

    On the server where your stuff is located:

      git init
      git add .
    

    On your local computer:

      git clone git://yourserver/repo localfolder
    

    To get changes:

      git pull
      git fetch
    

    To send changes to server:

      git push
    

    Here are links how to setup your server

    • ssh
    • http
    • daemon

提交回复
热议问题