This repository collects frequently used Git commands and short workflow guides that developers can use as a practical reference. It covers installation, status inspection, commits, branches, diffs, logs, tags, submodules, and Git configuration.
- Git Installation Guide: Install Git on common operating systems and verify that it works.
- Git Status Guide: Check working tree, staging area, and branch state before making changes.
- Git Config Guide: Set your username, email, editor, aliases, and other common defaults.
- Git Commit Guide: Write clearer and more consistent commit messages.
- Git Push Guide: Review changes, stage files, commit work, and push to a remote branch.
- Git Emoji Guide: Use gitmoji references for commit message categorization.
- Git Branch Operations: Create, switch, merge, delete, and publish branches.
- Git Diff Guide: Compare working tree, staged files, and commits.
- Git Log Guide: Browse commit history, branch graphs, and filtered logs.
- Git Tag Guide: Create, inspect, push, and remove tags.
- Git Clone with Submodules: Clone repositories that contain Git submodules and keep them updated.
If you are new to Git, a practical reading order is:
git-install-steps.mdgit-status-usage.mdgit-config-usage.mdgit-commit-usage.mdgit-push-steps.mdgit-branch-operations.mdgit-diff-usage.mdgit-log-usage.mdgit-tag-usage.mdgit-clone-with-submodules.md
The repository could also be expanded with:
- a Git stash guide
- a Git clean guide
- a Git remote guide
- a merge vs. rebase comparison
- a short FAQ for common mistakes