💾 Archived View for warpengineer.space › entries › sync_git_with_upstream.gemini captured on 2022-04-28 at 19:35:57. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
Sync a git Repo with Upstream
Steps to add a remote repo to a local project and sync with it.
- git remote add upstream <git://some.git.url/...> # Add the upstream as a remote
- git fetch upstream # Fetch the upstream
- git checkout master # Checkout brach to sync with upstream
- git merge upstream/master # Sync upstream's master branch locally