git serve

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there

I added a small subsection to the wiki at

http://git.or.cz/gitwiki/Aliases

I hope it's OK to just go ahead and edit like I did.

I love the power of git aliases. This one shows how easy it is to implement a "hg serve" alike "git serve".

In order to be able to use "git serve" from a subdir of the repo without much scripting (git-rev-parse --git-dir) my alias uses the fact that non-git aliases (beginning with "!") are executed with the top-level dir as cwd. Is this documented/guaranteed?

Michael

P.S.: I always wondered why there's no default "view = !gitk"...

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux