Broken branch in git, fatal: your current branch appears to be broken

前端 未结 9 1286
时光说笑
时光说笑 2021-02-01 12:57

Here is my case:

  • I was working on one branch.
  • Pushed new commits to the remote.
  • Switched back to the master branch.

But suddenly

9条回答
  •  失恋的感觉
    2021-02-01 13:32

    I solved it by cloning the repo to a new folder and then replacing the changed files. Doesn't seems to be a good solution, but it's safe!

提交回复
热议问题