Hi no problem.
The problem occurred due to our development workflow. We have a team of 3 developers and develop websites locally and deploy them to remote server. We all have Ubuntu machines with LAMP stacks. Since each user has their own credentials on their machines, once you push files to Git repository and someone pulls them to their machine, file ownership remains the same, that means you have the “wrong” credentials and can’t edit the files.
So each time you do the pull from repo you need to change file permissions to make them editable again. That wasn’t good enough for me because it takes an extra step, so we switched our development instances to Vagrant (https://github.com/mattandersen/vagrant-lamp). That way I can setup the project and then other developers clone the Vagrant machines to their PCs. Since these are virtual machines they all have the same credentials and files are always editable.
If needed I can give you a step by step setup process for this. Just let me know.