CLAUDE.md: pull at session start, remind to commit and push
Adds an 'Every session' section: git pull --ff-only before the first request, and a one-line reminder when work is left uncommitted or unpushed. Moves the Gitea details into that section.
This commit is contained in:
@@ -1,5 +1,29 @@
|
||||
# CLAUDE.md
|
||||
|
||||
## Every session: stay in sync with Gitea
|
||||
|
||||
This repo is backed up to `http://10.3.8.90:3000/chris/AV-Watch` (private, branch
|
||||
`main`). The Git login is in Windows Credential Manager, not in this repo.
|
||||
|
||||
1. **Pull at the start.** Before starting on the first request of every session,
|
||||
pull in the repo root (`C:\Users\Live Stream\Desktop\Claude\avwatch`):
|
||||
|
||||
```powershell
|
||||
# 'never' makes a bad token fail fast instead of opening a login window
|
||||
$env:GCM_INTERACTIVE = 'never'; git pull --ff-only
|
||||
```
|
||||
|
||||
Report the result in one line, then carry on with the request. If the pull
|
||||
fails (server unreachable, local changes in the way, history diverged), say
|
||||
why in that line and carry on. Don't stash, reset, rebase or merge to get past
|
||||
it unless asked. If `git` isn't found, use `C:\Program Files\Git\cmd\git.exe`.
|
||||
|
||||
2. **Remind before finishing.** When you finish a piece of work and `git status`
|
||||
shows uncommitted changes or unpushed commits, end your reply with a one-line
|
||||
reminder of what isn't on Gitea yet and offer to commit and push. Do the same
|
||||
when the user says they're wrapping up. Only commit or push when asked, and
|
||||
don't repeat the reminder if nothing has changed since the last one.
|
||||
|
||||
## What this is
|
||||
|
||||
**AVWatch** is a Python CLI that monitors firmware/software updates across the
|
||||
@@ -80,8 +104,3 @@ python -m avwatch scan --no-llm # no API spend
|
||||
4. Confirm the scheduled tasks are registered and the Monday digest mails correctly
|
||||
(`python -m avwatch digest --dry-run`).
|
||||
5. Decide whether `data/avwatch.sqlite3` needs a backup.
|
||||
|
||||
## Repository
|
||||
|
||||
Backed up to Gitea: `http://10.3.8.90:3000/chris/AV-Watch` (private, branch `main`).
|
||||
Git credentials are in Windows Credential Manager, not in this repo.
|
||||
|
||||
Reference in New Issue
Block a user