使用rebase合并多次commit

215 阅读1分钟

使用git做版本控制,因为可以本地提交,所以很多情况下会毫不顾忌的进行commit,当需要push的时候,发现commit的太多太乱,很有必要整理一下

本文介绍下使用git rebase进行commit合并

git rebase -i [startpoint] [endpoint]