error: update_ref failed for ref 'refs/remotes/origin/master': cannot lock ref 'refs/remotes/origin/master': Unable to create '/opt/lampp/htdocs/kelas/.git/refs/remotes/origin/master.lock': Permission denied Everything up-to-date code example
Example: git error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origin/master': reference broken
rm .git/refs/remotes/origin/master
git fetch