Last active
August 29, 2015 13:57
-
-
Save asross/9353670 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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