Git serve: I would like it that simple

前端 未结 8 573
南方客
南方客 2020-12-02 03:52

I want to know how to simply publish over http = much like Mercurial\'s hg serve! On the Windows/work box do this:

git serve 

and then on t

8条回答
  •  清歌不尽
    2020-12-02 04:06

    Currently using two aliases - serve and hub. Serve for read-only share and hub for read/write share:

    [alias]
      serve = !git daemon --base-path=. --export-all --reuseaddr --informative-errors --verbose
      hub = !git daemon --base-path=. --export-all --enable=receive-pack --reuseaddr --informative-errors --verbose
    

    Also, there is more detailed tutorial about sharing via git daemon: http://l.rw.rw/git-daemon .

提交回复
热议问题