git删除已push的commit
如果不小心把不改提交的代码或敏感数据(如密码)提交到远程git服务器上,可以使用git reset
回滚到上一个commit,并且commit history
不留下任何痕迹。
具体做法
1 |
|
git删除已push的commit
https://www.wekri.com/workflow/git-delete-origin-commit/
如果不小心把不改提交的代码或敏感数据(如密码)提交到远程git服务器上,可以使用git reset
回滚到上一个commit,并且commit history
不留下任何痕迹。
具体做法
1 |
|