Problem with Git push error: update_ref failed for ref 'refs/remotes/origin/master'

image
I’m trying to push my project but I get this error message “error: update_ref failed for ref ‘refs/remotes/origin/master’: cannot lock ref ‘refs/remotes/origin/master’: unable to resolve reference ‘refs/remotes/origin/master’: reference broken
Everything up-to-date”
I am connected with the university VPN, and there is no problem with my internet connection.

Thank you, it worked after using

rm .git/refs/remotes/origin/master
git fetch

as for how I got this error, I don’t know, I pushed the project this morning and didn’t get any daily test, that’s why pushed it again and saw there was an error.