Hacker News new | ask | show | jobs
by OkayPhysicist 224 days ago
My go-to solution for this problem is a git init --bare --shared=group repository in a shared mountable drive. Then you can declare that repo origin, and tada, git push/pull works.
1 comments

> git init --bare --shared=group

This is a very git command.

It does exactly what it says on the tin:

It calls "git" to "init"ialize a repository, which we don't need a working tree for ("bare") and that it's going to be "shared" with members of the "group".