tools-settings

fork or force git upstream

fork or add Upstream

To use a repository as a template for another one, fork it on GitHub or set it as a remote upstream of an existing project.

Disambiguation: “upstream” has at least two slightly different meanings:

If a respository was not really forked from the upstream, git might be refusing to merge unrelated histories. This change was introduced in Git 2.9 to prevent merging parallel histories into existing projects unnecessarily. Git isn’t aware of the connection between these two projects, so it will refuse to merge them and throw the aforementioned error message unless we use the --allow-unrelated-histories option to override while merging.

Use git remote -v to verify (or list) the configured remote repositories.

To synchronize/pull upstream updates, we can use it similar to working with branches: