CLI Command Reference Directory

Welcome to the MiniGit CLI Reference Manual. Commands are organized by functional categories below for quick lookup.

Command Categories

CategoryDescriptionDirect Guide
Daily WorkflowEssential everyday commands: init, status, add, commit, log, diff, show, cleanView Workflow →
Branching & MilestonesIsolated lines of development: branch, switch, checkout, tagView Branching →
Merging & RebasingHistory unification & conflict resolution: merge, rebase, cherry-pick, revert, resetView Merging →
Stash, Worktrees & BisectContext switching and debugging: stash, worktree, bisectView Advanced →
Remotes & NetworkNetwork synchronization and patterns: clone, remote, fetch, push, pull, .minigitignoreView Remotes →
Plumbing & StorageLow-level storage internals: hash-object, cat-file, ls-files, ls-tree, repack, verify-packView Plumbing →

Quick Command Syntax Table

CommandSyntaxPrimary Purpose
initminigit initInitialize new repository in working directory
statusminigit statusDisplay staged, unstaged, and untracked file status
addminigit add <paths...>Stage files or directories for the next commit
commitminigit commit -m "<msg>"Record permanent snapshot of staged changes
logminigit logView backward commit history from current HEAD
diffminigit diff [--cached]Compare working directory vs. index vs. HEAD commit
branchminigit branch [<name>]List, create, or delete branches
switchminigit switch [-c] <name>Switch branches or create and switch simultaneously
mergeminigit merge <branch>Fast-forward or 3-way merge target branch into HEAD
rebaseminigit rebase <upstream>Replay branch commits linearly on top of upstream
stashminigit stash [push|pop|list]Shelve uncommitted modifications temporarily
cloneminigit clone <url>Clone remote repository into new directory
pushminigit push <remote> <ref>Publish local commits to remote server
pullminigit pull <remote> <ref>Fetch and merge remote commits into current branch