Skip to content

Instantly share code, notes, and snippets.

@vikaskanani
Last active February 19, 2016 06:18
Show Gist options
  • Save vikaskanani/39c30a14cd5f93c5a375 to your computer and use it in GitHub Desktop.
Save vikaskanani/39c30a14cd5f93c5a375 to your computer and use it in GitHub Desktop.
gp.bat
git checkout development
IF %ERRORLEVEL% neq 0 GOTO error
git merge vikas
IF %ERRORLEVEL% neq 0 GOTO error
git push origin development
IF %ERRORLEVEL% neq 0 GOTO error
git checkout master
IF %ERRORLEVEL% neq 0 GOTO error
git merge development
IF %ERRORLEVEL% neq 0 GOTO error
git push origin master
IF %ERRORLEVEL% neq 0 GOTO error
git checkout vikas
GOTO end
:error
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment