Steps
1. Check
gh auth status
2. Log in
gh auth login --web --git-protocol https
3. Set Git user
git config --global user.name "你的名字"
git config --global user.email "your-email@example.com"
4. Security rules
- Do not write the GitHub token into Markdown, AGENTS, or the repo
- Check the diff before committing; do not indiscriminately
git add .