Join Kevin Skoglund for an in-depth discussion in this video How to use the exercise files, part of Git Essential Training.
- View Offline
If you're a Premium Member of the lynda.com training library or if you're watching this tutorial on a disk, you will have access to the exercise files that are used throughout this title. The exercise files for this title are arranged by chapter and by movie, and you can find the exercise files that correspond to the movie that you're watching by first looking for the chapter number and the then movie number. You want to copy the folder of exercise files into your user directory or to another convenient location, it's always a good idea to make a copy so that you still have the original to refer back to if you make changes. On my Mac, I do that by opening up a new window using Command+N, which by default opens to my user directory.
Then I'm going to open up my Documents directory, and that's where I'm going to put my files. Then I can Option+Drag over the folder from the exercise files to create a new copy. Now your files will be in the exact same state as mine at the start of that movie, and you'll be able to follow right along with me, you can also just use the exercise files as a reference to check your work as you go along. The software you will need for this tutorial is Git and a basic text editor. In chapter 1, we will learn how to install and configure the software and later when we get to the chapter on remote repositories, you'll also need a remote hosting account, don't worry if you don't have one already, I'll walk you through those steps to get you signed up for a free account.
If you're a monthly, or annual subscriber, to lynda.com, you'll not have the exercise files that have come to this tutorial, but you can still follow along with me. While you won't have the exact same files as I do, you can easily substitute in your own. The exact content of the files won't be as important as tracking changes that we make to them. If you want to use a real project of your own, I recommend that you use a copy so that you don't accidentally lose valuable work while you're learning. Remember, you can pause the video, or rewind, if you need more time to copy something down.
- Exploring the history of version control
- Installing Git on Mac, Windows, and Linux
- Initializing a repository
- Writing useful commit messages
- Understanding the Git three-tree architecture
- Tracking when files are added, edited, deleted, or moved
- Viewing change sets and comparing versions
- Undoing changes and rolling back to previous versions
- Ignoring changes to select files
- Creating and working with code branches
- Merging branches and resolving merge conflicts
- Stashing changes for later
- Working with hosted repositories and remote branches
- Developing an effective collaboration workflow