2a01ae9942939ee2b3954a6727d2bb92

git push origin +master 和 git push --force origin master

2012-04-29 16:19:10 +0800tonytonyjanGit 節點 中發起
最後由 匿名 於回應 , 234次閱讀

git push origin +mastergit push --force origin master

前者說明:to allow non-fast-forward updates.

後者說明:Usually, the command refuses to update a remote ref that is not an ancestor of the local ref used to overwrite it. This flag disables the check.

他們都可以用來砍掉一個誤傳到 remote 的 commit。但他們有什麼不一樣?

暫無回應。
需要 登入 後方可回應,如果你還沒有帳號按這裡 註冊