Skip to content

Instantly share code, notes, and snippets.

@irvingvjuarez
Created August 27, 2022 22:46
Show Gist options
  • Save irvingvjuarez/aab7086ad4ffd38089748f3a8783b1e2 to your computer and use it in GitHub Desktop.
Save irvingvjuarez/aab7086ad4ffd38089748f3a8783b1e2 to your computer and use it in GitHub Desktop.
How to fetch the latest version from a forked repo
#Once in your forked repo
$ cd PROJECT_NAME
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
#If you already did the above step, just fun the following commands
$ git fetch upstream
$ git merge upstream/master master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment