Skip to content

Instantly share code, notes, and snippets.

@drewthorp
Created February 6, 2012 17:18
Show Gist options
  • Select an option

  • Save drewthorp/1753442 to your computer and use it in GitHub Desktop.

Select an option

Save drewthorp/1753442 to your computer and use it in GitHub Desktop.
Git flow develop publish script
#!/bin/bash
echo "Merging the develop branch with the master branch and pushing to the remote repository..."
git checkout master
git fetch origin master
git merge --no-ff develop
git push origin master
git checkout develop
git fetch origin develop
git merge --no-ff master
git push origin develop
echo "Merge complete. Remote, master & develop are now all the same."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment