I’d like my team to be able to individually use the same checked out repo on our server to pull updates. Would it be possible to have a copy of the repo where multiple individual users would be able to make pull/merge requests from their own accounts?
Share
The plan that worked for me was (since this is an already checked-out repo) to run
git config core.sharedRepository trueto set the repo as a shared repo. I then went through and made sure all the git files werechmodto 664, and all of the folders werechmodto 775, to allow group-writability for git to work correctly between users. Then, simply have each user set up their own user-level git config for email address, name, etc in their home folder.NOTE: The world-readability, and ownership of certain files in the repo still needed to be maintained, as in this particular case, the repo in question was being served by our dev server (Apache).
Hope this helps!