0PricingLogin
Linux Command Line Mastery · Lesson

Git Basics from the Command Line

Learn essential Git commands for version control, including committing, branching, and merging.

What is Git?

Welcome to Git basics! Git is a powerful Version Control System (VCS). Think of it as a super-smart history book for your code.

It tracks every change you make, letting you revert to older versions, collaborate with others, and manage different features without stepping on toes. It's essential for modern software development!

Starting a Git Project

To begin tracking a project with Git, you first need to initialize a repository. This creates a special .git folder in your project, where Git stores all its tracking information.

Use the git init command in your project's root directory.

mkdir my_project
cd my_project
git init

All lessons in this course

  1. Git Basics from the Command Line
  2. Environment Variables and Aliases
  3. Shell Configuration: `.bashrc`, `.zshrc`, `.profile`
  4. Branching and Merging with Git from the Command Line
← Back to Linux Command Line Mastery