git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git serve

From
Michael J Gruber <michaeljgruber+gmane@fastmail.fm>
Date
Jun 27, 2008, 12:19 UTC
Message-ID
<g42lru$gsv$1@ger.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"...
Message 1 of 1 in “git serve”
  1. Michael J GruberJun 27, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.