The Computer Oracle

Where should I put my Git repository?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Future Grid Looping

--

Chapters
00:00 Where Should I Put My Git Repository?
00:32 Accepted Answer Score 6
00:42 Answer 2 Score 6
01:07 Answer 3 Score 1
01:22 Answer 4 Score 0
01:41 Thank you

--

Full question
https://superuser.com/questions/176452/w...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#git #repository

#avk47



ACCEPTED ANSWER

Score 6


Put them anywhere you like... /usr/share is fine...




ANSWER 2

Score 6


Another option would be /srv

One method for structuring data under /srv is by protocol, eg. ftp, rsync, www,
and cvs. On large systems it can be useful to structure /srv by administrative
context, such as /srv/physics/www, /srv/compsci/cvs, etc. This setup will differ
from host to host. /srv should always exist on FHS compliant systems and should
be used as the default location for such data.

/srv : Data for services provided by this system

Related

Where to store git repositories in linux?




ANSWER 3

Score 1


Why not create a user just for sharing your git repos and store the repos in the user's home directory? You could easily setup git ssh sharing.




ANSWER 4

Score 0


As the git repository is contained inside your work directory, just place the work directories wherever is most convenient. It is a good idea to setup repositories elsewhere (for backup purposes, basically), there you'd have to come up with some standard location.