Skip to content

Instantly share code, notes, and snippets.

@Cside
Created February 18, 2014 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cside/9066760 to your computer and use it in GitHub Desktop.
Save Cside/9066760 to your computer and use it in GitHub Desktop.
#!/bin/sh
branch=$(basename "`git symbolic-ref HEAD 2> /dev/null`")
git push origin $branch;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment