
Category · Git
Project history as snapshots, not a "final-2" folder
Init and commit, branches, origin, log, undoing, stash, gitignore, Pull Requests. Eight lessons are enough not to be afraid of a shared main.
To the first lessonCheatsheet nowTopics, each as its own lesson
01Repository, add, commitDemoGit remembers snapshots of a folder. add selects, commit records. It's not "save the file".
10 min
02Branches, switching, mergeA branch is a movable pointer to a commit. A feature lives separately, then gets merged.
11 min
03clone, push, pullA remote repository is one more copy of the history. origin is usually GitHub. push sends, pull fetches.
11 min
04History and difflog shows commits. diff shows what changed. Without them you push blind.
10 min
05Undo carefullyrestore discards edits in a file. revert adds a reverse commit. reset --hard on a shared branch — no.
12 min
06stash: putting unfinished work awayYou urgently need to switch branches but it's too early to commit — stash. You'll get it back later.
10 min
07.gitignorenode_modules, .env and the build don't go into history. Ignore before add.
10 min
08Pull RequestA branch, a push, a request to merge into main. Review happens before the merge, not after.
11 min0/8 topics open. This is the course intro, not the whole course on one page.