Each page is a quick reference for one Git operation: what it is for, the commands, when to use each one, and the gotchas. They are listed in the order you typically meet them in a day of work. Pair any of them with an AI assistant by pasting the page and asking it to apply the commands to your situation.
- You want the right Git command for a specific situation, explained.
- You are teaching Git to a team and want consistent explanations.
- You need to undo something safely and want to understand the options first.
| Page |
What it covers |
| Git Clone |
Copy an existing Git repository to your local machine. |
| Git Status |
Check the current state of your working tree and branch status. |
| Git Add and Commit |
Stage changes and create commits with clear history entries. |
| Git Push and Pull |
Send commits to remote and integrate remote changes into your branch. |
| Page |
What it covers |
| Git Fetch |
Download updates from a remote without changing your current branch. |
| Git Remote Management |
Manage remote repository connections. |
| Page |
What it covers |
| Create and Switch Branches |
Create branches for isolated work and move between branches safely. |
| Git Merge |
Combine changes from one branch into another. |
| Git Rebase |
Replay commits on top of another branch to keep history clean. |
| Page |
What it covers |
| Git Log |
Inspect commit history and understand what changed over time. |
| Tag Management |
Create and manage tags for releases and important milestones. |
| Page |
What it covers |
| Git Restore |
Discard working tree changes or unstage files using the modern restore command. |
| Git Reset |
Move HEAD and optionally unstage or discard changes. |
| Git Stash |
Temporarily save local changes without committing them. |
- Find the operation you need in the tables above.
- Replace placeholders such as
<branch> or <n> with your values.
- Run
git status before and after anything that rewrites history or discards work.
- Prefer
restore and stash over reset --hard when you are unsure.