特牛网址导航

利用 git rebase -i 指令合并多次 commit_git rebase -i commit-CSDN博客

网友收藏
文章浏览阅读2.1k次。由于公司要求一次 push 只能有一次 commit,然而自己由于操作失误,导致一次修改的内容,分成了两次 commit,再进行 push 的时候就失败了在网上找了一次找到了如下的方法合并前两次 commit 的信息# git rebase -i HEAD~2将从现在起倒数第二次 commit 修改为 squashpick acf6d24 2squash 03533..._git rebase -i commit