Created
August 31, 2020 08:27
-
-
Save thekarel/377484e581b4731163455852ec394174 to your computer and use it in GitHub Desktop.
Validate and squash this branch
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
validate_and_squash_this_branch () { | |
BRANCH=`git branch --show-current` | |
yarn validate && \ | |
git checkout master && \ | |
git merge --squash $BRANCH && \ | |
git commit -v -a | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment