Reputation: 703
Why this happening like this in ubuntu ? The permission switching is making problems for me.. Any Idea for recovering this issue ?
Upvotes: 1
Views: 1647
Reputation: 41021
Git actually doesn't keep track of permissions set on files except for the executable bit.
Since you cloned the repo as root, then root is the owner and the only one that can edit the files.
Change ownership to your username
chown -R <username> <project_directory>/
Upvotes: 5