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.

dukeofgaming
  • 3,108
  • 4
  • 28
  • 35

1 Answers1

1

You can use git instaweb, it's a part of git.

OneOfOne
  • 95,033
  • 20
  • 184
  • 185