Skip to content

ProperPath

Menu

The real thing

The real thing

Here is the practice project from start to finish, as the commands you type. The two "Once" parts come from "The commands this course uses": install, make the folder, and save its first version. The "Every session" part comes from "A way out of every mistake" and "Can this break anything?". The last part is how you see a change and undo it. Run them in this order, and you can always go back to the saved version.

# The practice project, from install to undo.

# Once: install Claude Code on a Mac, then open a new terminal.
# On Windows, install git first, then paste this in PowerShell instead:
# irm https://claude.ai/install.ps1 | iex
curl -fsSL https://claude.ai/install.sh | bash
claude --version

# Once: make the practice folder.
mkdir claude-practice
cd claude-practice
# Make a file called README.md with one line in it, in any text editor. Then save the first version.
git init
git add README.md
git commit -m "Start"

# Every session: save the folder with git commit first, then start Claude.
pwd
claude
# Read each request before you press Enter to choose Yes.
# Press Esc to stop Claude while it is working.
# Type /exit to leave Claude Code.

# After the session: see each change, then undo the one you do not want.
git diff
git checkout -- README.md
cat README.md