Git rebase
What is rebase?
- rebase is repeated cherry-picking
How to use rebase?
- pull with rebase, the default behavior is merge
- don't open a merge commit when
Rebase snippets
从最初的 commit 开始变基
edit修改此 commitsquash与上一 commit 合并,保留 commit message
显示 commit 的信息
修改 commit 日期而不修改内容
GIT_COMMITTER_DATE="Wed Sep 23 10:00 2015 +0100" git commit --amend --no-edit --date "Wed Sep 23 10:00 2015 +0100"
继续变基的下一操作