Skip to content

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]:

  1. Add the upstream remote: Register the original repository URL as a remote named upstream.
  2. Verify remotes: Optionally use git remote -v to confirm that both the origin (your fork) and upstream (the source) are correctly configured.
  3. Fetch changes: Retrieve the latest changes from the upstream repository.
  4. Merge or Pull: Integrate the upstream changes into your local branch (often via git pull upstream).

Sources

  • 600-developer__tools__git__git-upstream.md
  • [[Git]]
  • [[Repository]]