diff --git a/README.md b/README.md index eee20606..6b9ca9b4 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Me, on my own machines, which take tagged releases. Nobody else depends on it. ## Install -Claude Code may already have created `~/.claude`, where `git clone` refuses to run, so make the repository in place, then check the latest tag out per "Update": +Claude Code may already have created `~/.claude`, where `git clone` refuses to run, so make the repository in place: ```sh mkdir -p ~/.claude && cd ~/.claude @@ -28,6 +28,8 @@ git init git remote add origin ssh://git@gitea.larvit.se:21022/lilleman/claude-config.git ``` +Then run Update's commands. + Have Python 3.11 or newer as `python3` on `PATH`, and for Rust projects `rust-analyzer` on `PATH`, which the `rust-analyzer-lsp` plugin needs. Install every plugin `settings.json` enables: ```sh @@ -41,15 +43,21 @@ Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/lo ## Update -Check the latest tag out: +A machine that takes tagged releases moves to the latest tag. List what the move discards: every uncommitted change to a file the tag tracks, such as a `settings.json` Claude Code wrote. ```sh cd ~/.claude git fetch --tags origin +git status --short +``` + +A change reaches a machine only through a tag. To keep one, merge it per `AGENTS.md` → "Working rules" and cut a release ("Release") before moving. Then move: + +```sh git checkout -f "$(git tag -l 'v*' --sort=-v:refname | head -n 1)" ``` -`-f` overwrites every tracked file, such as a `settings.json` Claude Code wrote. To keep a change, look it over with `git diff` and commit it first, per `AGENTS.md` → "Working rules". +Then do what `CHANGELOG.md` asks of each version since the old tag, such as a new step under Install. ## Release