Skip to content

Instantly share code, notes, and snippets.

@cypher
Created June 14, 2009 06:22
Show Gist options
  • Save cypher/129570 to your computer and use it in GitHub Desktop.
Save cypher/129570 to your computer and use it in GitHub Desktop.
#!/bin/bash
git push ${1:-origin} $(git branch | sed -ne 's/^\*\ \(.*\)$/\1/p')
# Put this file somewhere in your PATH, call it 'git-up', make it +x,
# and then you can call "git up" to push to origin, or "git up foo"
# to push to 'foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment