docs: add Chinese README and dated-tag versioning rules

- Move English README to README.en.md, add Chinese README.md as the entry point
- Cross-link both READMEs at the top
- Add Tagging section to docs/03-git-workflow.md (YYYYMMDD format,
  immutable, annotated, daily-suffix collisions)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
阿白叔andClaude Opus 4.7 committed 2026-05-20 09:22:38 +08:00
1 parent 7f9ca07903
commit 411f0b8182
3 files changed
+149 -28

No files matched your search

+47
View File
@@ -77,6 +77,51 @@ Author follow-ups:
usually the right starting point.
- Delete the branch on merge.
## Tagging (versioning)
We tag by date: `YYYYMMDD` (e.g. `20260520`). Each tag is a snapshot of
`main` worth pointing at — "this is the version we agreed to follow."
Rules:
- Tag only on `main`. Tagging a feature branch is a smell.
- One tag per day max. If you cut a second one the same day, suffix with
`-N`: `20260520-2`, `20260520-3`.
- Tag messages are annotated, not lightweight. Use `git tag -a` and
write one or two sentences about what changed since the last tag.
- A tag, once pushed, is immutable. No deleting, no moving, no force-tag.
If the tag is wrong, cut a new one.
- Tag the commit, push the tag, and announce the tag name. That's the
release.
Cut a tag:
```bash
git checkout main
git pull --ff-only
git tag -a 20260520 -m "team-guide 20260520: bilingual README, dated tags"
git push origin 20260520
```
List / inspect:
```bash
git tag --sort=-creatordate # newest first
git show 20260520 # show what's in a tag
git log --oneline 20260513..20260520 # what changed between tags
```
When to cut a tag:
- The docs in this repo changed in a way teammates need to read.
- A template was added, removed, or restructured.
- A new convention is now in effect (not just proposed).
When NOT to cut a tag:
- Typo fixes, formatting, broken links → just push to `main`.
- Drafts under discussion → use a PR, don't tag.
## What NOT to do
- No `git push --force` to `main`. Period. To your own branch, only if
@@ -84,6 +129,8 @@ Author follow-ups:
- No `--no-verify` to skip hooks. Fix what the hook is complaining
about.
- No amending pushed commits. Once it's on the remote, add a new commit.
- No deleting or moving tags after they've been pushed. Cut a new one
instead.
- No committing `.env`, credentials, or files larger than ~5 MB without
a Git LFS conversation first.
- No staging with `git add .` or `git add -A` when there are untracked