git 回滾到某次提交

使用git log查看需要回滾一次提交的commit id 運行命令git reset --hard <commit_id> git push origin HEAD --force 強制提交一次,之前錯誤的提交就從遠程倉庫刪除
相關文章
相關標籤/搜索