强制撤销push

171 阅读1分钟

1.git log //找到commit的版本号

2.git reset --hard <版本号> //撤回到需要的版本

3.git push --force //强制覆盖之前提交的版本

注意: --hard :强制撤销