![]() Let's first try to understand what remote-tracking branches and tracking branches are. ![]() All the changes of this remote branch can be pulled by the local branch and, the local branch can push changes to the upstream. The remote branch is called the upstream of the local branch. In most cases, the upstream is a central remote repository, and all the local repositories of developers collaborating on that project are downstream.Īn upstream branch is a remote branch that is tracked by a local tracking branch.Existing data will flow downstream from one repository to another and new changes will flow upstream to the repository from where the data was initially fetched. We can also think of upstream and downstream as the flow of data.It all depends on what the other repository is trying to do. Both of these are relative, which means that there is no central upstream or downstream.Our local repository is known as the Downstream. ![]() In Git, any repository that we clone from, or pull from, or push to, is called the Upstream.Let's learn more about the concept of Upstream and Downstream in Git. In this case, the remote repository is called the Upstream and our local repository is known as the Downstream. In these situations, we have a central remote repository from where we cloned our local copy and, we also have our own local repository where we work on features and push them to the remote repository. A lot of times, we will be working on a project and collaborating with other developers.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |