Created
November 5, 2018 14:47
-
-
Save asharirfan/c5cf09604e5bccb3aeeb30590a3ab931 to your computer and use it in GitHub Desktop.
π Sync fork in seconds with zsh alias and function
This file contains hidden or 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
# 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