git刪除錯誤提交的commit

方法:      git reset --hard <commit_id>     git push origin HEAD --force 其餘:     根據–soft –mixed –hard,會對working tree和index和HEAD進行重置:     git reset –mixed:此爲默認方式,不帶任何參數的git reset,即時這種方式,它回退到某個版本,只保留源碼,回退
相關文章
相關標籤/搜索