git的使用
1、撤销git已经push的代码:https://blog.csdn.net/weixin_46273839/article/details/127209442
- 撤回push:右键git提交的历史记录中要回退的版本,点击”Copy Revsion Number”
- 右键项目名选择“Git”,选择“Reset HEAD”,Reset Type选择Hard,To Commit位置填入上一步复制的Revsion Number,点击Reset
- 进入项目所在文件,右键空白位置,选择“Git Batch Here”,执行“git push -f ”语句
2、撤回commit:右键git提交的历史记录中要回退的版本,点击”Reset Current Branch to Here...“,然后选择”Mixed“,点击”Reset“