Skip to content

Instantly share code, notes, and snippets.

@asharirfan asharirfan/.zshrc
Created Nov 5, 2018

Embed
What would you like to do?
🏎 Sync fork in seconds with zsh alias and function
# Alias for adding upstream remote.
# Usage: grau https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
alias grau="git remote add upstream"
# Function to sync fork with upstream remote.
function gsyncfork() {
git fetch upstream
git pull upstream master
git push origin master
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.