Answers for "* branch main -> fetch_head error: cannot lock ref 'refs/remotes/origin/main': unable to resolve reference 'refs/remotes/origin/main': reference broken ! [new branch] main -> origin/main (unable to update local ref)"

3

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
Posted by: Guest on March-26-2021
0

fatal: cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/main': reference broken PS E:\Nextjs\factyear>

Delete the .git folder with file explorer with view hidden items enabled.
Posted by: Guest on October-13-2021

Code answers related to "* branch main -> fetch_head error: cannot lock ref 'refs/remotes/origin/main': unable to resolve reference 'refs/remotes/origin/main': reference broken ! [new branch] main -> origin/main (unable to update local ref)"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language