Created
July 25, 2017 05:58
-
-
Save tusharmath/97c392a214d1abb4dfe6fd5536813332 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
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