Created
February 6, 2012 17:18
-
-
Save drewthorp/1753442 to your computer and use it in GitHub Desktop.
Git flow develop publish script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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