From the course: Version Control for Everyone
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Experiment safely with branches - GitHub Tutorial
From the course: Version Control for Everyone
Experiment safely with branches
- [Instructor] In this video, we're going to start looking at branches, which are the main way we can pursue different directions in our work. And we recall that master is the main branch. Of course, we can make our own. So let's say I'm going to start dealing with the fact that some questions are not as frequently asked as they used to be. And I'm going to start removing some. I'll create a new branch where I can start working on that idea. In Sublime Merge, I can create a branch using this command in the repository menu. We'll call this fewer FAQs. And now I can see I have a new label for this branch. Nothing else has apparently changed, so let's start working on this. I'm going to start removing some of these FAQs from the file. Move a couple of these, then save, now back over here, I will stage and commit this change. We'll call this first pass at removing less frequently asked questions. And now my new fewer…
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)
Write and commit in small chunks4m 26s
-
(Locked)
Write in big chunks, commit later4m 28s
-
(Locked)
Adding and removing files4m 47s
-
Going back in time5m 37s
-
(Locked)
Experiment safely with branches4m 38s
-
(Locked)
Stashing work that's not ready yet4m 7s
-
(Locked)
Merging when work is ready3m 22s
-
(Locked)
Challenge: The next great novel2m 27s
-
(Locked)
Solution: The next great novel2m 5s
-
(Locked)
-
-
-