Git Detached Head

69 Views Asked by At

I have run into this Git detached head and haven't found a solution yet that has worked. Here is my scenario...

I have a Dev branch I work on, committed several times and then all of the sudden notice I have a "detached head" and my Dev branch is actually 2 commits behind my Head. I can navigate back to the head no problem to resolve the issue but then I would lose all commits after the Head became detached.

I need to some how merge the 2 commits after my Dev branch, with my Dev branch to get Dev back to the Head so I can continue development.

I have tried several things in other Git Detached Head issues on here but none have resolved my particular issue. Any help is great appreciated.

0

There are 0 best solutions below