1.show log 2.点击左上角的master,选择远程的master分支 3.右击需要回退到的目标点,选择 Reset "master" to this ... 选择 Hard: Reset working tree and index (discard all local changes) 4.处理完后,可以看到master分支已经跟orgin/HEAD orgin/master不在一个点上了
➜ fekit-extension-yo git:(dev) git push origin :master remote: error: By default, deleting the current branch is denied, because the next remote: error: 'git clone' won't result in any file checked out, causing confusion. remote: error: remote: erro