Moving Things Around
- Flip 2 commits in a branch.
- Send 2 commits in 2 separate branches.
- Move a file from a commit to a future one.
- Fix a typo, send it 10 commits ago.
- Rebase 2 branches simultaneously.
- Reflect on the new unprecedented history-bending abilities you just gained. Invent new audacious (but useful) moves.
- Profit.
You can do all sort of black magic sorcery with just 2 commands:
| Operation | Command |
|---|---|
| Move a Change somewhere else | rebase |
| Move the changes you made somewhere else | squash |
Best of all, they only take a few minutes to learn.