Fork synchronization workflow¶
The Fork synchronization workflow is a process used to update a local or hosted fork repository with changes from the original upstream source^[600-developer__tools__git__git-upstream.md]. This workflow is essential for maintaining parity between a fork and the parent project, typically when the fork cannot be automatically updated via the platform interface^[600-developer__tools__git__git-upstream.md].
Procedure¶
The workflow is executed using the Git command line and involves the following steps^[600-developer__tools__git__git-upstream.md]:
- Add the upstream remote: Register the original repository URL as a remote named
upstream. - Verify remotes: Optionally use
git remote -vto confirm that both theorigin(your fork) andupstream(the source) are correctly configured. - Fetch changes: Retrieve the latest changes from the upstream repository.
- Merge or Pull: Integrate the upstream changes into your local branch (often via
git pull upstream).
Sources¶
600-developer__tools__git__git-upstream.md
Related¶
- [[Git]]
- [[Repository]]