Git serve: I would like it that simple

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

    Here is an alternative way. You will need python installed.

    • run git update-server-info
    • go to the .git directory
    • run python -mSimpleHTTPServer

    (just create an alias in your gitconfig)

    Now you can pull the repo with git pull http://HOST_NAME:8000/

    PS: when usingthe git daemon solution you can set --base-path=.git so the url is git://HOST/

提交回复
热议问题