Git serve: I would like it that simple

前端 未结 8 576
南方客
南方客 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:23

    Add following lines in .git/config

    [instaweb]
                   local = true
                   httpd = webrick
                   port = 4231
    

    then execute

    git instaweb
    

提交回复
热议问题