From the course: Git: Branches, Merges, and Remotes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Track remote branches

Track remote branches

From the course: Git: Branches, Merges, and Remotes

Start my 1-month free trial

Track remote branches

- [Instructor] In this movie, I want us to talk about one local branch track the progress of another local branch. For example, we can have a text edits branch, which tracks the master branch. We're regularly going to be pulling so that it never diverges too far, and it has most of the commits Tracking another branch allows us to have feature branches which continually include any improvements to the main branch that we have to deal with It forces the developer working on the feature branch to make sure that their changes are going to be ready to fit Now tracking is also really common with remote branches and it works in a similar way. Plus with a bit of configuration, it also saves us some typing. Here's the same kind of example but now I've got a master branch that's tracking my remote branch "origin/master". The principles are exactly the same. I may have other collaborators contributing code into my my remote repository, I don't want my master branch to get too far out of sync…

Contents