Differences
This shows you the differences between two versions of the page.
docs:git:rebase [2009/10/21 21:33] – created billh | docs:git:rebase [2009/10/21 23:14] (current) – billh | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== rebase ===== | ===== rebase ===== | ||
FIXME | FIXME | ||
+ | rebase allows you to do several things, one of which is to take a group of commits, rewrite history, and organize them into a lumped commit. | ||
+ | |||
+ | * start a rebase operation in interactive mode, for the latest 5 commits< | ||
+ | git rebase -i HEAD~5 | ||
+ | </ | ||
+ | * your text editor will be started, showing you a list of the commits within the specified scope, and instructions listed at the bottom | ||
+ | * edit this file as necessary per the instructions, | ||
+ | * if the rebase fails or your decide not to go through with it, you need to abort< | ||
+ | git rebase -i --abort | ||
+ | </ | ||
+ | * if you need to fix something from a conflict, you can continue the operation< | ||
+ | git rebase -i --continue | ||
+ | </ | ||
===== External Links ===== | ===== External Links ===== | ||
* [[http:// | * [[http:// |