error: cannot update the ref 'refs/remotes/origin/master': unable to append to '.git/logs/refs/remotes/origin/master': Permission denied
! 1ac19fbc1e..0c0a40cfb4 master -> origin/master (unable to update local ref)
error: cannot update the ref 'refs/remotes/origin/staging': unable to append to '.git/logs/refs/remotes/origin/staging': Permission denied
! 4e40349b66..fc19bfe26d staging -> origin/staging (unable to update local ref)
- [new branch] upstream_master -> origin/upstream_master
Change file permission from 644 to 664 to allow write permission for groups.
[kiat@emgsdev emgsihe_devel]$ find .git -type f -exec sudo chmod 664 {} \;
Posted by kiatng to Git (2020-01-07 02:41)