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

2

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 "fatal: cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/main': reference broken PS E:\Nextjs\factyear>"

Browse Popular Code Answers by Language