桑海

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年4月21日

摘要: push 以后,git commit多且杂乱: git reset 到希望回退的最后一个commit之前的一次,(撤销本地的提交记录,但是本地的修改文件保持不变, --hard参数会吧文件修改也回退掉) git push --force (撤销远程的) 然后再重新add commit push。 阅读全文
posted @ 2017-04-21 10:27 桑海 阅读(111) 评论(0) 推荐(0) 编辑