Skip to content

Instantly share code, notes, and snippets.

@bruno-barros
Last active August 29, 2015 14:10
Show Gist options
  • Save bruno-barros/743fbeb86d706d2dba5a to your computer and use it in GitHub Desktop.
Save bruno-barros/743fbeb86d706d2dba5a to your computer and use it in GitHub Desktop.
keep git repos synced
# 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