Created
December 13, 2016 13:34
-
-
Save jsmrcaga/eb3bf9afeb20e79416e903b838159903 to your computer and use it in GitHub Desktop.
Command to auto rebase a branch from another.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
magic = "!sh -c 'git checkout \"$1\" && git pull && git checkout \"$0\" && git rebase \"$1\"'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to use as:
git magic current-branch master-branch