From the course: Version Control for Everyone
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Solution: The next great novel - GitHub Tutorial
From the course: Version Control for Everyone
Solution: The next great novel
(upbeat music) - [Instructor] Let's take a look at one possible solution to our longer piece of writing challenge. To recap, we were supposed to create a branch, do some writing, merge that branch, and then delete the next chapter file when we're finished. So I'll start out by creating a new branch. I'll call this chapter four. And now I'm going to do my writing. So I'll scroll down to the end, here. Here's where the next chapter will go. And I'll get the content for that chapter out of this file. I'll just select all, copy, and close this file, I'll paste this in here. This includes my other image, and I'm going to check the preview to see what this looks like. "Heathy Paths in Outer Garden Spaces," perfect. I'm very passionate about this subject. Now I can close the preview and save the file. Everything looks good so far. Now I've decided that I really like what I've done here, so I will commit my changes on my branch.…
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
-
-
-
-
-
Write and commit in small chunks4m 26s
-
Write in big chunks, commit later4m 28s
-
Adding and removing files4m 47s
-
Going back in time5m 37s
-
Experiment safely with branches4m 38s
-
Stashing work that's not ready yet4m 7s
-
Merging when work is ready3m 22s
-
Challenge: The next great novel2m 27s
-
Solution: The next great novel2m 5s
-
-
-
-