我找不到我的問題工作液:刪除遠程犯git的
如何刪除提交在本地以及在遠程存儲庫。 這是一個solution。但是當我嘗試這個時,我可以在我的本地存儲庫中使用reset
命令返回。但我無法推動它。錯誤消息說: remote: error: denying non-fast-forward refs/heads/master (you should pull first)
但在pull
後,我的主人再次指出我想要刪除的提交。
你能幫忙嗎?
編輯 - 我嘗試:
$ git reset --hard HEAD^1
HEAD is now at 1c50f9c good commit
$ git push -f
Total 0 (delta 0), reused 0 (delta 0)
remote: error: denying non-fast-forward refs/heads/master (you should pull first)
To E:/reps/gf.git
! [remote rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'E:/reps/gf.git'
我試着用'git push -f'和'git push --force'。它不適合我。 – bLAZ 2013-04-04 09:51:01