This is the repository that you originally copied when you created your fork. "Upstream" refers to the original repository that you forked from. When you clone your fork to your local machine, Git automatically sets up a remote called "origin" that points to your fork on GitHub. This copy is called a fork, and the original repository is called the upstream repository. When you fork a repository on GitHub, you create a copy of it in your own account. "Origin" typically refers to your own fork of a repository. In the context of GitHub, "origin" and "upstream" refer to two different repositories. What is the difference between origin and upstream on GitHub? You will contribute back to the upstream repo by making a pull request. (again, without parameters, 'origin' is used by default) You will use origin to pull and push since you can contribute to your own repository. ( git fetch alone would fetch from origin by default, which is not what is needed here) You will use upstream to fetch from the original repo (in order to keep your local copy in sync with the project you want to contribute to). 2021, the unauthenticated git protocol ( git://.) on port 9418 is no longer supported on GitHub. ![]() (with aUser/aRepo the reference for the original creator and repository, that you have forked) To keep track of the original repo, you need to add another remote named upstream git remote add upstream When a repo is cloned, it has a default remote called origin that points to your fork on GitHub, not the original repo it was forked from. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |