Git ideas,
side by side.
Short explainers for the choices Git makes you stop and think about. Read the safety notes before running a command.
Pick a topic
10 pagesGit vs GitHub vs GitLab
The tool on your laptop versus the websites that host it. Which one you actually need.
2Merge vs rebase
Two ways to combine work, what each does to history, and when to leave history alone.
3Checkout vs switch
switch moves branches, restore fixes files. Why checkout did both.
4Reset vs revert vs restore
Pick the undo by what you want to change: a file, a commit, or shared history.
5Git stash explained
Park unfinished work, switch away, then bring it back carefully.
6Git cherry-pick explained
Copy one commit onto another branch without merging the rest.
7Git log in one line
Read long history quickly with --oneline, --graph and a few filters.
8Gitignore for Node
Track the project, not node_modules and build output.
9Gitignore for Python
Ignore __pycache__, virtual environments and tool caches, keep your source.
10Ignore .DS_Store
Keep macOS folder metadata out of your repo, and what to do if it is already tracked.
Hit an error message instead? See the fixes. Want the ideas in order? Start the course, or try commands safely in the practice terminal.