I created a Git repository in a folder with a different Linux owner than my user. Only after that I set the group permissions for recording so that my user can make changes and write to Git. However, whenever I switch from branch to main, all write permissions of the group are lost.
I tried to switch to the main branch and, using the root user, make all the files with the record turned on for the group I am in. But when I switch to another branch, all write rights to the group are again lost.
user205151
source
share