Created
July 25, 2017 06:31
-
-
Save ivikash/cc21d11f68e92bc0692b74deaab0568d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| git_rebase_onto_master () { | |
| git fetch origin | |
| commitID=`git log origin/master..HEAD --oneline --pretty=format:"%h" | tail -1` | |
| git rebase --onto origin/master $commitID~1 -i --preserve-merges --autosquash | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment