Skip to content

Instantly share code, notes, and snippets.

@coppolaemilio
Created July 19, 2017 15:03
Show Gist options
  • Select an option

  • Save coppolaemilio/1e8dcc1c559e23004d06937c46c46f27 to your computer and use it in GitHub Desktop.

Select an option

Save coppolaemilio/1e8dcc1c559e23004d06937c46c46f27 to your computer and use it in GitHub Desktop.
git add .
git commit -a -m %2
git push
for /f "delims=" %%i in ('git rev-parse --symbolic-full-name --abbrev-ref HEAD') do set output=%%i
git checkout %1
git merge %output% --no-edit
git push
git checkout %output%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment