Last Updated: February 25, 2016
·
293
· goonnow

Push New Branch

Shorthand for pushing new branch.

#!/bin/sh

function pnb() {
    branch=$(git branch | sed -n '/\* /s///p')

    echo "We're pushing to '$branch'"

    git push origin $branch
}