Created
February 24, 2021 12:15
-
-
Save sd031/9b1d660cefdd98afc6dc812b291de164 to your computer and use it in GitHub Desktop.
git upstream
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
Open Terminal. | |
List the current configured remote repository for your fork. | |
$ git remote -v | |
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) | |
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push) | |
Specify a new remote upstream repository that will be synced with the fork. | |
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git | |
Verify the new upstream repository you've specified for your fork. | |
$ git remote -v | |
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) | |
> origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (push) | |
> upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch) | |
> upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push) | |
Did this doc help you? | |
Privacy policy | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment