随笔分类 -  git

摘要:撤销commit一般用git reset ,语法如下: 1.使用参数--mixed(默认参数),如git reset --mixed <commit ID>或git reset <commit ID> 撤销git commit,撤销git add,保留编辑器改动代码 2.使用参数--soft,如gi 阅读全文
posted @ 2019-10-10 19:14 白树 阅读(36267) 评论(1) 推荐(4) 编辑

点击右上角即可分享
微信分享提示