Skip to content

Instantly share code, notes, and snippets.

@paulstatezny
Created June 13, 2014 18:22
Show Gist options
  • Save paulstatezny/e88afdbff58f01cea1f7 to your computer and use it in GitHub Desktop.
Save paulstatezny/e88afdbff58f01cea1f7 to your computer and use it in GitHub Desktop.
A fish shell function for pushing the current (new) branch to the origin remote
function pushbranch
set branch (git rev-parse --abbrev-ref HEAD)
git push -u origin $branch
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment