I have a development machine that use runs on CentOs.
Whenever i pull from git using
git pull i get "permission denied" issue/error.
Git apparently doesn't have the permission to overwrite the files needed when i do a pull. Thus after every time i have to
sudo git pull to get it to work.
I would rather not do a
sudo git pull because i'd like everyone to be able to pull from our development server.
How do i configure git to have the proper permissions to just be able to pull without
sudoing? Is this because I may have not configured git properly? If so how do i configure git to allow the correct permissions?
Not sure if this helps but a
which git reveals this:
git commit -m "my fun message"
error: Unable to append to .git/logs/refs/heads/stage: Permission denied fatal: cannot update HEAD ref