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.
Check out remote branches
From the course: Git: Branches, Merges, and Remotes
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Push changes to a remote repository5m 21s
-
(Locked)
Fetch changes from a remote repository5m 1s
-
(Locked)
Merge in fetched changes4m 34s
-
(Locked)
Check out remote branches3m 9s
-
(Locked)
Push to an updated remote branch1m 45s
-
(Locked)
Delete a remote branch4m 26s
-
(Locked)
Enable collaboration3m 53s
-
(Locked)
Collaboration workflow7m 6s
-
(Locked)
-