Check Your Working Tree
git statusShows the current branch and which files are staged, modified or untracked. A useful first command before saving work.
Inspect, save and understand your changes without losing the thread.
git statusShows the current branch and which files are staged, modified or untracked. A useful first command before saving work.
git diff
git diff --stagedThe first command shows unstaged changes to tracked files. The second shows changes already staged for the next commit.
git add index.html
git commit -m "Add accessible page structure"Stage the specific files you intend to save. A commit records staged content, not every change in the folder.
git switch -c improve-navigationCreates and switches to a new branch. Use a name that describes the change you are about to make.
git log --oneline -5Shows up to five recent commits. Each line includes a short commit identifier and its message.