I'm on the local dev
branch and want to rebase from the same branch on origin
. This currently works:
git rebase origin/dev
Is there a way to avoid specifying /dev
? Like
git rebase origin/<same>
This would just be to avoid rebasing the wrong branch by mistake and to create a reusable command.
This does what I want:
If there's anything shorter, please suggest.
Slightly unrelated, but I needed this to easily fetch+rebase+push as suggested on Don't Be Scared of git rebase by making it a single command: https://gist.github.com/bfred-it/36e50e20e7927b052372