📌  相关文章
📜  如何远程删除 git 中的提交 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:44.432000             🧑  作者: Mango

代码示例1
If you want to delete for example the last 3 commits, run the following command to remove the changes from the file system (working tree) and commit history (index) on your local branch:

git reset --hard HEAD~3
Then run the following command (on your local machine) to force the remote branch to rewrite its history:

git push --force