![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
永远爱好技术的王师傅
这个作者很懒,什么都没留下…
展开
-
Git删除暂存区或版本库中的文件
https://www.cnblogs.com/cposture/p/git.html原创 2020-09-05 20:51:21 · 152 阅读 · 0 评论 -
git删除push到远程服务器的commit
1.git删除push到远程服务器的commit# 1.通过找到想要退回到的哪个commit_id$ git log# 2.本地代码变成某个提交记录时刻的代码$ git reset --hard commit_id# 3.推送到服务器,一定要加 --force 参数 "master":对应的分支即可$ git push origin HEAD:master --force...原创 2020-09-05 20:46:49 · 450 阅读 · 0 评论