Skip to content

Instantly share code, notes, and snippets.



Created Nov 5, 2018
What would you like to do?
๐ŸŽ Sync fork in seconds with zsh alias and function
# Alias for adding upstream remote.
# Usage: grau
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