THE FIELD GUIDES
Git your shell together.

Commits. Branches. Small wins. Fewer disasters. Learn the tools behind your projects, then review what your AI helper changes.
18-page PDF · original starter project · practice missions · command card · no paid AI tool required
Download everything in one ZIP. Use Terminal on Mac/Linux or Git Bash on Windows. Start in a new practice folder.
Your code deserves a save button.
Meet Git, GitHub and your first Honu mission.
Set up your little island.
Terminal choices, identity and a clean practice folder.
git --version
gh --versiongit init -b main
git config user.name "Your Display Name"
git config user.email "YOUR_GITHUB_NOREPLY_EMAIL"
git statusSave the first checkpoint.
Inspect → stage → inspect again → commit.
git status
git add index.html rescue-log.md
git diff --staged
git commit -m "Start Honu rescue station"
git log --onelinegit diff
git add rescue-log.md
git diff --staged
git commit -m "Record first beach check"
git statusRead the tracks before you move.
Which change is where?
git status
git diff
git diff --staged
git diff HEADgit restore --staged rescue-log.md
git status
git diffgit add rescue-log.md
git commit -m "Pack snacks and log seagull incident"
git log --oneline --graph --decorateOops is a workflow.
Undo the right thing without guessing.
git diff -- rescue-log.md
git restore -- rescue-log.md
git statusgit show COMMIT_HASH:rescue-log.mdGive your idea its own sandbox.
A branch holds experiments; your folder still matters.
git status
git switch -c feature/beach-bannergit diff
git add index.html
git commit -m "Add beach patrol heading"
git switch maingit merge feature/beach-banner
git branch -d feature/beach-banner
git log --oneline --graph --decorateKeep the treasure out of the repo.
Ignore first. Inspect before upload.
.env
.env.*
!.env.example
node_modules/
.DS_Storegit check-ignore -v .env
git status --short
git add .gitignore .env.example
git diff --staged
git commit -m "Add ignore rules and example settings"Give your island a remote harbor.
Create and push one private practice repo.
gh auth login
gh auth statusgit status
git remote -v
gh repo create honu-git-lab --private --source=. --remote=origin --pushgit remote -v
git branch -vv
gh repo view --webPush, fetch, pull, clone.
Four verbs. Four different jobs.
git clone YOUR_REPO_HTTPS_URL honu-git-lab-copy
cd honu-git-lab-copy
git status
git log --onelinegit fetch origin
git log --oneline main..origin/main
git pull --ff-onlyGive the robot a job description.
A small issue beats a vague wish.
gh issue create \
--title "Add a beach cleanup checklist" \
--body "Add three cleanup tasks. Keep existing content. No new dependencies."
gh issue listReview before the victory dance.
Make a pull request you can understand.
git diff
git add index.html
git commit -m "Add beach cleanup checklist"
git push -u origin feature/cleanup-checklist
gh pr create --draft --base main \
--title "Add beach cleanup checklist" \
--body "Adds three cleanup tasks. Verified the page in a browser. Closes #ISSUE_NUMBER."gh pr view PR_NUMBER
gh pr diff PR_NUMBER
gh pr checkout PR_NUMBERgit switch main
git pull --ff-onlyTwo turtles. One sentence.
A controlled merge conflict, entirely local.
git add tide.txt
git commit -m "Set practice patrol time"
git switch -c practice/later-patrolgit add tide.txt
git commit -m "Try nine oclock patrol"
git switch maingit add tide.txt
git commit -m "Try ten oclock patrol"
git merge practice/later-patrolgit add tide.txt
git commit -m "Agree on nine thirty patrol"
git statusRecover with a new breadcrumb.
Reverse a commit while keeping history readable.
git add rescue-log.md
git commit -m "Practice a change we will undo"
git log -1 --oneline
git revert --no-edit HEAD
git log -2 --onelineYour pocket command card.
Read status first. Replace placeholders deliberately.
git status # current state
git diff # unstaged tracked edits
git diff --staged # next commit contents
git add FILE_NAME # stage named file
git commit -m "Explain the change" # record staged snapshot
git log --oneline --graph # inspect history
git restore --staged FILE_NAME # unstage, keep edits
git restore -- FILE_NAME # discard unstaged edit
git show HASH:FILE_NAME # inspect committed file
git switch -c feature/NAME # create and switch
git switch main # return to main
git merge feature/NAME # merge into current branch
git fetch origin # download, do not integrate
git pull --ff-only # update only if fast-forward
git push # upload commits
gh issue list # inspect open issues
gh pr diff PR_NUMBER # inspect a PR
gh pr checkout PR_NUMBER # fetch and switch to PR
git merge --abort # cancel pending merge
git revert HASH # reverse ordinary commitWhen the terminal gets dramatic.
A message is a clue, not a verdict.
Good guides leave good credits.
Sources, reuse and what your store purchase means.
Original source license
Preserved in full for the adapted source material.
Keep exploring with Honu
Try our free AI Basics course, explore the AI coding tools guide, or ask Wednesday to explain a sanitized error.
Read the original MIT licenseWant to support the next Honu guide?
Everything above stays free on ChathoNU. Optional store copies cost $14.99 USD one-time and contain the same learning material. They support Max and give you a copy in your store library.
Support on GumroadSupport on WhopStuck on a step? Send a message and say which one.