Skip to content

Instantly share code, notes, and snippets.

@antonio
Created June 14, 2012 19:45
Show Gist options
  • Save antonio/2932484 to your computer and use it in GitHub Desktop.
Save antonio/2932484 to your computer and use it in GitHub Desktop.
Example script showing how to extend git with new commands
#!/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