Skip to content

Instantly share code, notes, and snippets.

@thunderrun
Created December 5, 2020 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thunderrun/fc56703ed6296faebf865bf6a235e5e6 to your computer and use it in GitHub Desktop.
Save thunderrun/fc56703ed6296faebf865bf6a235e5e6 to your computer and use it in GitHub Desktop.
Merge current branch into master
git push
FOR /F "tokens=*" %%g IN ('git branch --show-current') do (
SET CurrentBranch=%%g
)
git checkout master
git pull
git merge %CurrentBranch%
git push
git checkout %CurrentBranch%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment