git-create-branch
Creates (and switches to) a new branch both locally and on remote
Usage: git create-branch foobar
Example:
src (lorem) $ git create-branch foobar
Switching to master...
Creating new branch 'foobar'...
Switched to a new branch 'foobar'
Pushing to remote origin...
Total 0 (delta 0), reused 0 (delta 0)
To ssh://git@github.com:user/project.git
* [new branch] foobar -> foobar
Branch foobar set up to track remote branch foobar from origin by rebasing.
src (foobar) $
Installation
Simply copy this script into a directory on your path (/usr/local/bin for example) and then give it executable permissions (chmod 755 /usr/local/bin/git-delete-branch).