Created
June 3, 2020 09:27
-
-
Save TimDorand/0a0f6deddc88a4795dde6799723b673b to your computer and use it in GitHub Desktop.
Ultimate Rebase And Push Executable. Takes the current branch in first param.
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
#!/bin/bash | |
echo "$(tput setaf 3)Rebasing branch $1 with develop and pushing $(tput sgr0) | |
" | |
git stash && git checkout develop && git pull --rebase && git checkout $1 && git rebase origin/develop && git push -f origin $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment