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.