Inspect
Working tree status
git status --shortShows staged, unstaged and untracked paths.
Development reference
Common Git inspection and everyday workflow commands, with clear notes about operations that change state.
10 of 10 entries
Inspect
git status --shortShows staged, unstaged and untracked paths.
Inspect
git diff -- src/Shows tracked changes not yet staged, limited here to src/.
Inspect
git diff --cachedReview the exact changes prepared for your next commit.
Inspect
git log --oneline -10Lists ten recent commits from the current history.
Inspect
git branch --allLists local and remote-tracking branch names.
Change
git switch -c feature/exampleCreates and switches to a local branch; requires a sufficiently recent Git.
Change
git add -- src/example.tsStages this file’s current content. Review it with git diff --cached.
Change
git commit -m "Explain the change"Creates a local commit from the index. It does not publish to a remote.
Remote
git fetch originUpdates remote-tracking information without merging into your working branch.
Remote
git push -u origin feature/examplePublishes local commits to the named remote branch; inspect the destination first.