Git Essential Training: The Basics (2019)
2h 56mBeginner2019-05-22
Authors

Kevin Skoglund
Founder of NovaFabrica
Course details
Learn how to use Git, the popular open-source version control software, to manage the source code for almost any project. In this course, Kevin Skoglund explores the fundamental concepts behind version control systems and the Git architecture. Using a step-by-step approach, he shows how to install Git and presents the commands that enable efficient code management. Learn how to add, change, and delete files in the repository; view a log of previous commits; and compare versions of a file. Plus, see how to undo changes to files and ignore certain files in a Git repository.
Learning objectives
Exploring the history of version control
Installing Git on Mac, Windows, and Linux
Initializing a repository
Writing useful commit messages
The Git three-tree architecture
Tracking when files are added, edited, deleted, or moved
Viewing change sets and comparing versions
Undoing changes and retrieving previous versions
Ignoring changes to select files
Learning objectives
Exploring the history of version control
Installing Git on Mac, Windows, and Linux
Initializing a repository
Writing useful commit messages
The Git three-tree architecture
Tracking when files are added, edited, deleted, or moved
Viewing change sets and comparing versions
Undoing changes and retrieving previous versions
Ignoring changes to select files
Skills covered
GitVersion ControlGitHubDevOps ToolsDevOpsEssential TrainingOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Use Git version control software to manage project code
1. What Is Git
- 02 - Version control
- 03 - The history behind Git
- 04 - About distributed version control
2. Install Git
- 05 - Install Git on a Mac
- 06 - Install Git on Windows
- 07 - Install Git on Linux
- 08 - Basic Git configuration
- 09 - Git auto-completion
- 10 - Git help
3. Getting Started
- 11 - Initialize a repository
- 12 - Where Git files are stored
- 13 - Your first commit
- 14 - Write a commit message
- 15 - View the commit log
4. Git Concepts and Architecture
- 16 - The three trees
- 17 - Git workflows
- 18 - Hash values (SHA-1)
- 19 - The HEAD pointer
5. Make Changes to Files
- 20 - Add files
- 21 - Edit files
- 22 - View changes with diff
- 23 - View only staged changes
- 24 - Delete files
- 25 - Move and rename files
6. Use Git with a Real Project
- 26 - The Explore California website
- 27 - Initialize Git
- 28 - View file edits
- 29 - Stage and commit shortcut
- 30 - View a commit
- 31 - Compare commits
- 32 - Multiline commit messages
- 33 - Make atomic commits
- 34 - Challenge - Client edits
- 35 - Solution - Client edits
7. Undo Changes
- 36 - Undo working directory changes
- 37 - Unstage files
- 38 - Amend commits
- 39 - Retrieve old versions
- 40 - Revert a commit
- 41 - Remove untracked files
8. Ignore Files
- 42 - Use .gitignore files
- 43 - Ideas on what to ignore
- 44 - Globally ignore files
- 45 - Ignore tracked files
- 46 - Track empty directories
Conclusion
- 47 - Next steps