我正在尝试撤消一些已经推送到远程存储库的更改,并且我已经在本地使用但是现在它不允许我不先拉就推,这当然违背了它的目的。我试过了:以下是哪种错误:remote: error: denying non-fast-forwardrefs/heads/master (you should pull first)
To git@xxx.beanstal
C:\Users\User\Desktop>git clone https://github.com/XXXXXXXXXX.gitremote:You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD
我正在尝试撤消不是合并的单个git提交,但我仍然收到此错误。但是,我尝试恢复的提交是一个合并,但我不想撤消该合并。我想保留合并,但之后撤消单次提交。执行此操作的正确命令是什么?我当前的代码是 $ git revert <old_commit_hash>
...is a merge but no -m option was given.