Git: Resolving a detached HEAD

I was in a situation where the branch I was working on was reading as a detached HEAD

I had never seen this before. I checked out “cherryfans-prototype” and then saw that my detached head was no longer showing when executing “git branch”

I had done alot of work on the detached head and was worried everything was gone. After I checkout “cherryfans-prototype” I noticed this message

so I ran this command

then I checked out “cherryfans-prototype” and merged hey into it and we were good

Leave a Reply

Your email address will not be published.