Skip to content

Instantly share code, notes, and snippets.

@d2s
Last active January 13, 2024 01:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d2s/a10b168ed335f15934ea90e20adff7b5 to your computer and use it in GitHub Desktop.
Save d2s/a10b168ed335f15934ea90e20adff7b5 to your computer and use it in GitHub Desktop.
Working with 3rd party Git repositories

Working with 3rd party repositories

Pull changes from upstream

Steps to pull changes from an upstream repository.

Add upstream Git repository

git remote add upstream https://github.com/d2s/companies.git

Merge latest changes from the upstream Git repository

git fetch upstream
git checkout master
git merge upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment