Fix a Git detached head? - Stack Overflow
Detached head means you are no longer on a branch, you have checked out a single commit in the history (in this case the commit previous to HEAD, i.e. HEAD^).
You only need to checkout the branch you were on, e.g.
git checkout master Next time you have changed a file and want to restore it to the state it is in the index, don't delete the file first, just do
Read full article from Fix a Git detached head? - Stack Overflow
No comments:
Post a Comment