在Mercurial中,我可以做如下的事情:
> 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
这使我不必关心我的祝福存储库,并且可以从对等点推送到另一个对等点。
如何在 git 中满足这一需求?
PS:或者,我可以启用 Mercurial zeroconf 扩展,然后在存储库上下文之外执行 hg 路径,这为我提供了任何人都可以看到的存储库的唯一网络 URL。
你可以使用 git instaweb,它是 git 的一部分。