GitMini guides
Practical guides to read your Git history, prepare cleaner commits and organize your branches. Every example runs in a throwaway repository, so you can try it before touching your own work.
Git reset hard vs soft vs mixed: the difference
Git reset hard, soft or mixed: what each mode does to HEAD, the index and your changes, how to undo a commit, and how to recover it with git reflog.
Git revert commit: undo a pushed commit on GitHub
Git revert commit undoes a pushed commit with a new one, without rewriting history: the last commit, a merge, several commits, conflicts.
Git undo last commit: reset local commits, revert pushed
Git undo last commit: git reset keeps or drops your local changes, git revert undoes a commit already pushed. Commands, effects and how to recover.
Undo a git rebase mistake: reflog, reset or revert
Undo a git rebase: find the old branch tip in git reflog, reset your commits to it, or revert the changes if the rebase was already pushed.
Git undo merge: undoing a merge with reset or revert
Git undo merge in three cases: abort a merge in progress, reset your branch if the merge is local, or revert a pushed merge commit with git revert -m 1.
GitKraken alternatives: choosing a Git client for your workflow
Looking for a GitKraken alternative? Compare graph, staging, rebase and platforms from dated sources, test on one repository, then pick your Git GUI.
Git commit amend: change the last commit message or content
Use git commit --amend to fix the last commit message or add a forgotten file, see why the commit ID changes, and what to do if it was already pushed.
Git diff staged: review the changes in your next commit
Git diff staged shows what your next commit will contain. Compare git diff and git diff --cached on a partially staged file, then read it in GitMini.
Git add patch: stage only part of a file
Use git add -p to stage only part of a file: pick hunks with y and n, check what is staged, and select hunks visually in GitMini.
Git add and staging: prepare exactly what goes into your next commit
Learn how git add moves changes into the Git staging area, how to check them with git diff --cached, and how to split your work into clean commits.
Git log all branches: view history beyond the current branch
Use git log --all to list commits from every branch, not only the one you are on, and learn to read local and origin/ references in a terminal or in GitMini.
Git log graph: understand branches and commits visually
Read git log --graph step by step: commits, parents, branch pointers, a divergence and its merge, then compare the terminal view with a desktop graph.