Is there a one-liner for pulling a branch and rebasing to it?
For example, when working on a feature
branch, one checks out master
, pulls changes, and then checkouts to feature
before running git rebase master
.
# currently on feature branch
git checkout master
git pull
git checkout feature
git rebase master
What's the one-liner for this?