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

Unlock the full course today

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

Check out remote branches

Check out remote branches

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

Start my 1-month free trial

Check out remote branches

- [Instructor] We've learned how to push changes to a repository and we've learned how to fetch them and merge them in. But that was to a branch that we already had. When we cloned the repository it gave us a master branch by default. I want us to see how you can check out additional remote branches. When we created this second repository lynda_version we did it by cloning and it gave us only one branch by default, and that was the master branch. And that's what we still have. Git branch. You see it has the master branch. Git branch -r shows though that there are other branches that are available. The non-tracking branch that we pushed up from the other repository. That's a branch that's out there we can work with. We can take a look at it. We can see what's there. Maybe make some contributions and push it back up again. So we want to see that non_tracking branch and have a copy of it locally we can work with. We can't check out that branch itself, it's a tracking branch and it's used…

Contents