Archive
Category: Command guide
In-depth guides to individual Git commands, with syntax, options, examples and common pitfalls.
Command guide
git fetch vs git pull: what’s the difference?
git fetch downloads remote commits without changing your files; git pull fetches and merges them. See a side-by-side comparison, examples, and when to use each.
· Read →Command guidegit stash: save work without committing
git stash saves uncommitted changes so you can switch branches, then restores them with git stash pop. Commands, examples and how to handle stash conflicts.
· Read →Command guidegit reset: soft vs mixed vs hard, explained
git reset moves your branch back to an earlier commit. See what --soft, --mixed and --hard do, examples, how to recover with reflog, and reset vs revert.
· Read →