====== General git tips ====== * To allow a bare repo to be able to "fetch" updates from the remote: git config remote.origin.fetch 'refs/heads/*:refs/heads/*' ====== Setup a local git server ====== These steps are from this page: http://www.spinellis.gr/blog/20130619/ * Create a group for git users: groupadd gitgroup * Add each user with "useradd -m -G gitgroup " * Create the repo in a place which has at least group/user level rx permissions (don't need w): # cd # git init --bare .git # chmod g+rx .git # chown -R :gitgroup .git # cd .git # git config core.sharedRepository group # find . -type d -print0 | xargs -0 chmod 2770 # find . -type f -print0 | xargs -0 chmod g=u * Clients can now login with SSH authentication and clone the repo