Skip to content

Instantly share code, notes, and snippets.

@jpemberthy
Created May 14, 2013 01:06
Show Gist options
  • Select an option

  • Save jpemberthy/5572853 to your computer and use it in GitHub Desktop.

Select an option

Save jpemberthy/5572853 to your computer and use it in GitHub Desktop.
function gp {
current_branch=`git branch | grep \* | awk '{print $2}'`
git push origin $current_branch
}
function pull {
current_branch=`git branch | grep \* | awk '{print $2}'`
git pull origin $current_branch
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment