Last active
October 14, 2022 15:33
Merge current branch into another then switch back
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
export HEAD=$(git branch --show-current) && \ | |
git checkout -B staging origin/staging && \ | |
git merge --no-ff $HEAD && \ | |
git push && \ | |
git checkout $HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment