Update code while keeping a linear history
suggest changeA plain git pull merges when the upstream has commits you do not. To replay your local commits on top of that upstream instead:
[alias]
up = pull --rebase
This will update with your upstream source, then reapply any work you have not pushed on top of whatever you pulled down.
To use:
git up
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents