Skip to content

Instantly share code, notes, and snippets.

@asross
Last active August 29, 2015 13:57
Show Gist options
  • Save asross/9353670 to your computer and use it in GitHub Desktop.
Save asross/9353670 to your computer and use it in GitHub Desktop.
function groc { # git rebase origin/{current}
local remote_branch="${1:-origin}/$(git branch | grep \* | cut -c 3-)"
git rebase $remote_branch
}
function gpoc { # git push origin {current}
local current_branch="$(git branch | grep \* | cut -c 3-)"
git push origin $current_branch
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment