Git commit submitted the project to the remote warehouse and reported an error, fatal: cannot lock ref 'HEAD'.

projects have been updated. I have been uploading projects in git bash to github,. Recently, I don"t know what went wrong. When I came to git commit, I always reported an error. Does any friend have an idea?

clipboard.png

git git resetgit gc

clipboard.png

Mar.09,2021

take a look at the current HEAD pointing to cat .git / HEAD

.
Menu