首页 > 其他 > 详细

git undo last commit

时间:2016-04-12 22:22:09      阅读:312      评论:0      收藏:0      [点我收藏+]
$ git commit -m "Something terribly misguided"              (1)
$ git reset --soft HEAD~                                    (2)
<< edit files as necessary >>                               (3)
$ git add ...                                               (4)
$ git commit -c ORIG_HEAD                                   (5)


转自: http://stackoverflow.com/questions/927358/how-do-you-undo-the-last-commit

git undo last commit

原文:http://www.cnblogs.com/pinganzi/p/5384630.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!