GIT restore last detached HEAD

前端 未结 7 1763
醉梦人生
醉梦人生 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:50

    If you dont want to keep changes of detached HEAD and want to go to latest branch commit use below command directly.

    git checkout - 
    

    Note:I will delete all your changes in the detached HEAD.

    0 讨论(0)
提交回复
热议问题