git rebase -i HEAD~2

最新提交gei远程git服务器出错,紧接着修复正确后,再次提交给远程git服务器。
git rebase -i HEAD~2

接着在新出现的编辑框中的某一行(所在行是要被并入另一行的行),删除pick,输入f。(最新的项并入前一项)

esc
:wq

最后
git push for-master



备注:git rebase --abort
      git log
      git reset

猜你喜欢

转载自jackleechina.iteye.com/blog/1936595
今日推荐