Managing Multiple Git Remotes
When collaborating on open-source projects it is common to work with multiple remotes. Typically: upstream: the original repository maintained by the project owners origin: your personal fork of the repository This setup allows you to keep your fork synchronized with the original project while developing and contributing changes. Configuring the Remotes Suppose you have already forked a project on GitHub. Check your current remotes: git remote -v Example output: origin git@github.com:your-user/project.git (fetch) origin git@github.com:your-user/project.git (push) Add the upstream remote: ...