0

In Mercurial, I can do something like:

> hg serve
**repository server now in localhost:8000**

> hostname
my_machine

> nslookup my_machine    
my_machine.myintranet.com

//gives my_machine.myintranet.com:8000 to colleague, from where he/she can push/pull

This allows me to not care about my blessed repo and make it possible to push from peer to another peer.

How do I do I fulfill that need in git?

P.S.: Optionally, I could enable the Mercurial zeroconf extension and then just do an hg paths outside of a repo context, which gets me a unique network URL for the repo which anyone could see.

4

1 回答 1

1

您可以使用git instaweb,它是 git 的一部分。

于 2013-09-12T01:00:43.073 回答