# git serve

1 messages from 2008-06-27 to 2008-06-27. Participants: Michael J Gruber.
Thread: https://gitlist.dev/t/14181

## Michael J Gruber, 2008-06-27 12:19

Subject: git serve
Message-ID: <g42lru$gsv$1@ger.gmane.org>
URL: https://gitlist.dev/e/g42lru%24gsv%241%40ger.gmane.org

```
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"...

```
