Fix git “not currently on any branch” after merge conflicts

来源:互联网 发布:matlab矩阵求导 编辑:程序博客网 时间:2024/06/04 00:48


http://stackoverflow.com/questions/15862922/fix-git-not-currently-on-any-branch-after-merge-conflicts


Not sure what happened, but you could fix it easily by creating a new branch and then merging it:git branch lost_changesgit checkout mastergit merge lost_changes


git branch lost_changesgit checkout mastergit merge lost_changes

0 0