I've found a few different answers, and was curious if there is a standard between it being in a folder under $HOME or something like /var?
Standard Installation Locations for git repositories (e.g. jQuery)
git
Related Question
- Git installation
- MacOS – Security update for git on mac
- Git – Is It Normal to Have the Home Directory Under Git?
- Tell git not to use the GitHub account (Keychain) for public repositories – it’s a privacy issue
- macOS Command-Line – Ownership of the .config Folder in Home Directory
- Can you install NPM and Git under a standard user account
Best Answer
No standard but if a repo then it is only writeable by you so under $HOME
If it is on a server and no access except by http or git protocols then anywhere (and some setups might use var I would use /git)