Git fundamentals
Lessons in this group, roughly in build order:
- initializing-a-repository-git-init — git init turns an ordinary directory into a Git repository by creating the hidden .git/ folder that holds…
- the-working-directory-staging-area-and-repository — Git models your project as three states a file moves through — the working directory, the staging area…
- tracking-changes-git-add — git add copies the current content of files from the working directory into the staging area, queuing…
- committing-git-commit — git commit records the staged snapshot as a new, immutable commit object linked to its parent, advancing…
- checking-status-git-status — git status reports the state of the working tree and index relative to HEAD: what is staged, what is…
- viewing-history-git-log — git log walks the commit graph backward from a starting point (default HEAD), printing commits in…
- viewing-changes-git-diff — git diff shows line-level differences between two trees — most often the working directory, the index, and…
- ignoring-files-gitignore — .gitignore lists path patterns that Git should leave untracked — build output, dependencies, local config,…
- removing-and-moving-files-git-rm-git-mv — git rm and git mv delete and rename tracked files while staging that change in one step, keeping the index…