Give README an Update section that moves a machine's checkout to the latest tag

This commit is contained in:
2026-10-04 22:26:45 +02:00
parent 26fb73f8eb
commit 95e613380b
3 changed files with 14 additions and 11 deletions
+13 -5
View File
@@ -20,18 +20,14 @@ 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 check the latest tag out in place:
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":
```sh
mkdir -p ~/.claude && cd ~/.claude
git init
git remote add origin ssh://git@gitea.larvit.se:21022/lilleman/claude-config.git
git fetch --tags origin
git checkout -f "$(git tag -l 'v*' --sort=-v:refname | head -n 1)"
```
`-f` overwrites every tracked file already there, such as the `settings.json` Claude Code wrote.
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
@@ -43,6 +39,18 @@ claude plugin install rust-analyzer-lsp@claude-plugins-official
Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run `loop-claude` only in a sandbox with no direct access to a production environment, such as a dedicated VM: every claude it starts, the interrupt included, skips every permission prompt.
## Update
Check the latest tag out:
```sh
cd ~/.claude
git fetch --tags origin
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".
## Release
Rename `## Unreleased` in `CHANGELOG.md` to the version, commit, and tag that commit `v<version>`.