Created
June 14, 2012 19:45
-
-
Save antonio/2932484 to your computer and use it in GitHub Desktop.
Example script showing how to extend git with new commands
This file contains 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/sh | |
branch=$1 | |
test -z $branch && echo "branch required." 1>&2 && exit 1 | |
git checkout master | |
git merge $branch | |
git push origin master | |
git push origin :$branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment