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.