Kolam Ayer MakersLinux Foundations

git

Core Idea

Git records source history as commits. A commit is a named checkpoint of tracked files.

In this course, git protects ~/src, not generated output in ~/public_html.

Basic Loop

cd ~/src
git status
git add pages/index.md
git commit -m "Update homepage"
git log --oneline -5
git push

Mental Model

Common Commands

Watch Out

Run git status before git add, before git commit, and before git push. Most beginner git mistakes start with not reading status.

Docs Pointers