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
}
Written by goonnow
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#