Is there a way to git push without overriding the general permissions inside the .git folder (config, HEAD ecc.)?

26 Views Asked by At

I'm working on a project with other colleagues, using Git to keep changes up to date.

Our testing environment is located on a university lab machine, which uses a secure environment to not allow people outside the Linux group to access these files, excluding us. We use ssh to log in with university credentials.

The problem lies when one of us pulls from the remote repo. When this happens, the permissions of some files inside the .git folder change, passing from those of the group to those of the individual, which makes it impossible for other members to pull into that environment, preventing testing until the person that you pulled last time, manually, changes all permissions to allow the entire Linux group to be able to make changes.

We tried to the command git core.sharedrepository group, and made sure each of us matched our git config email and username.

Any suggestions?

0

There are 0 best solutions below