Skip to content

Instantly share code, notes, and snippets.

@tkawachi
Created October 3, 2012 00:51
Show Gist options
  • Save tkawachi/3824264 to your computer and use it in GitHub Desktop.
Save tkawachi/3824264 to your computer and use it in GitHub Desktop.
Merge develop to master and push it
#!/bin/bash
set -e
COMPANY_REMOTE=plucky
git fetch $COMPANY_REMOTE
git checkout master
git reset --hard $COMPANY_REMOTE/master
git merge --no-ff $COMPANY_REMOTE/develop
git push origin master
git push $COMPANY_REMOTE master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment