Skip to content

Git - Version Control Fundamentals

Git is a version control system that helps you track changes to your code and collaborate with others. Think of it as a "save system" for your projects that lets you see what changed, when it changed, and who changed it.

Why Learn Git?

  • Track Changes: See exactly what changed in your code over time
  • Backup: Never lose your work - everything is saved in the repository
  • Collaboration: Work on projects with other people without conflicts
  • Industry Standard: Every professional developer uses version control

What You'll Learn

This Git learning path is designed to get you comfortable with the essential Git commands and concepts that you'll use every day as a developer.

1. Interactive Learning

Start with visual, hands-on learning to understand how Git works conceptually.

Learn Git Interactively →

2. Staging and Commits

Learn how to add files to the staging area and create commits using the command line.

Staging and Commits →

3. Gitignore

Understand how to tell Git which files to ignore in your projects.

Working with .gitignore →

4. Merge Conflicts

Learn how to review and resolve conflicts when combining changes.

Handling Merge Conflicts →

Prerequisites

  • Basic familiarity with the command line
  • A text editor (VS Code, Sublime Text, or similar)

Installation

Before starting the lessons, make sure Git is installed on your computer:

```bash # Check if Git is already installed git --version

# If not installed, install via Homebrew
brew install git
```

Download and install from git-scm.com

bash sudo apt update sudo apt install git

Next Steps

Once you've completed these lessons, you'll have a solid foundation in Git. To continue learning:

Quick Reference

Need a quick reminder of Git commands? Check out our Git Quick Reference →