I'm sharing a git repository with a friend over SSH. He pushes from and pulls to his git repository using my machine's SSH server, where the shared git repository is.
Problem is that when he pushes a commit, I can't pull, because the commit is janito users rwx------
(these are permission metadata).
I created a group called git, added him and myself, and the repository is jpmelos git rwxrwx---
. How can I force files created in the repository directory to be <creator> git rwxrwx---
as well, so we can always pull and push without worrying about permissions?
Or you can suggest better solutions to the problem, of course. Restrictions are that we need to use the SSH on my machine (we are not ready to make the code public yet) and we are already pushing and pulling from a bare repository I created separately from my working repository.
Thanks!