GIT restore last detached HEAD

前端 未结 7 1809
醉梦人生
醉梦人生 2020-12-07 12:06

Please, I have a big problem in my project: this is the scenario. I have an xcode project under GIT. Today I realized that the last commit broke some tests, so i checked out

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 12:48

    detached head is fine as long as you want to make No change.

    If you want revert a commit, you can use git revert on specific branch

    If you want to work off detached head and do commits; create a new branch (and later merge it);

提交回复
热议问题