Skip to content

Instantly share code, notes, and snippets.

@knewter
Created February 22, 2013 19:43
Show Gist options
  • Save knewter/5016029 to your computer and use it in GitHub Desktop.
Save knewter/5016029 to your computer and use it in GitHub Desktop.
Make it easy to say "git push origin `this`"

Wherever your aliases are stored, you can do this:

alias this="git rev-parse --abbrev-ref HEAD"

Then you can type:

git push origin `this`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment