使用兩條指令:
git log
git reset --hard <commit_id>
git push origin HEAD --force
其中commit_id是你想回到的commit的id(即想刪除的commit的前一個commit),可以在github.com的commit中查看。
git log
git reset --hard <commit_id>
git push origin HEAD --force
其中commit_id是你想回到的commit的id(即想刪除的commit的前一個commit),可以在github.com的commit中查看。