There is no standing convention of which I'm aware. However, I have found that storing bare repositories at /var/git/
works very well. You can also create a system user (useradd git -r -d /var/git/
) to ease repository access. This would allow a syntax for accessing repositories like git@localhost:repository.git
.
This keeps the bare repositories, which you don't need to access frequently, under normal circumstances, separate from your working copies. It also allows you simple remote access, if you were so inclined, via ssh to the git
user.
Edit: I just noticed that you specified using the home directory. If it is absolutely necessary that you use your home directory, I would recommend using ~/.git_bare/
or ~/.GIT_BARE/
.