Last active
August 29, 2015 14:10
-
-
Save bruno-barros/743fbeb86d706d2dba5a to your computer and use it in GitHub Desktop.
keep git repos synced
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
# fork and clone | |
git clone <repo name> | |
# keep synk with remote origin | |
git remote add origin https://<repo name> | |
# fetch updates from upstream | |
git checkout master | |
git fetch upstream | |
git merge upstream/master | |
#? git rebase upstream/master | |
# update my repo | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment