Git alias to rebase and merge in one go
If you find yourself repeatedly switching into a branch to rebase it onto master to (fast-forward) merge it into master, here's the appropriate alias for you:
remerge = !git checkout $1 && git rebase master && git checkout master && git merge $1
Written by Oliver Gierke
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#