Git upstream remote¶
In the context of [[Git]], the upstream remote refers to the original repository from which a local project has been forked. It is commonly used to synchronize a local copy with changes made to the source project after the initial fork.^[600-developer__tools__git__git-upstream.md]
Configuration¶
To track the original repository, a remote named upstream must be added to the local Git configuration using the git remote add command^[600-developer__tools__git__git-upstream.md].
git remote add upstream https://github.com/yudady/intellij-sdk-docs.git
Additionally, the URL for the origin remote can be updated using the set-url command^[600-developer__tools__git__git-upstream.md].
git remote set-url origin https://github.com/yudady/intellij-sdk-docs.git
Verification¶
You can verify the configured remote repositories by running the following command^[600-developer__tools__git__git-upstream.md]:
git remote -v
Synchronization¶
Once the upstream remote is configured, changes can be retrieved from the original repository using the git pull command^[600-developer__tools__git__git-upstream.md].
git pull upstream
Related Concepts¶
- [[Git remote]]
- [[Git fork]]
- [[Git pull]]
Sources¶
600-developer__tools__git__git-upstream.md