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

Re: Question around git-shell usage in Everyday Git

From
Linus Torvalds <torvalds@osdl.org>
Date
Feb 1, 2006, 23:30 UTC
Message-ID
<Pine.LNX.4.64.0602011523000.21884@g5.osdl.org>
In-Reply-To
<200602012301.56141.alan@chandlerfamily.org.uk>
On Wed, 1 Feb 2006, Alan Chandler wrote:
Show 5 quoted lines
> 
> My question, in this case is there any reason (such as git creating home 
> directoriy temp files or something) why each developer could not have their 
> home directory as the root of all the repositories (ie where my git user in 
> the above example had its home directory).
No reason why not.

I use my home directory for all _my_ projects, and just clone them within my own network with

	git pull g5:v2.6/linux ..
rather than using the absolute path-name.

And no, git should never use your home directory for anything else (ie all file operations are normally done just in $GIT_OBJECT_DIR or similar: some things like "git-diff-files" will use the current working directory, but nothing uses $HOME (*)).

So I would indeed suggest that the home directory would be the natural place to put developer projects.

		Linus

(*) Not entirely true. "git-cvsimport" uses "$HOME/.cvspass" for CVS passwords. But the _basic_ git commands shouldn't do that.

Previous: Alan Chandler
Message 9 of 9 in “Question around git-shell usage in Everyday Git”
  1. Alan ChandlerFeb 1, 2006
  2. Junio C HamanoFeb 1, 2006
  3. Junio C HamanoFeb 1, 2006
  4. Linus TorvaldsFeb 1, 2006
  5. Junio C HamanoFeb 2, 2006
  6. Alan ChandlerFeb 2, 2006
  7. Junio C HamanoFeb 2, 2006
  8. Alan ChandlerFeb 2, 2006
  9. Linus TorvaldsFeb 1, 2006

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.