Add git commit identity rules to AGENTS.md
- Document distinction between my projects and user's projects - Add step-by-step instructions for switching git identity - List specific projects for each owner - Add visual reminders and quick check commands
This commit is contained in:
parent
a92ffd203a
commit
08bfe94fdd
55
AGENTS.md
55
AGENTS.md
@ -254,6 +254,61 @@ Check Project Hub at http://localhost:3000 for:
|
||||
|
||||
---
|
||||
|
||||
## Git Commit Identity
|
||||
|
||||
### IMPORTANT: Switch Identity Based on Project Owner
|
||||
|
||||
**Context:** We share the same machine/SSH keys, but commits should show correct author.
|
||||
|
||||
**My Projects (OpenClaw Bot):**
|
||||
- gantt-board
|
||||
- blog-backup
|
||||
- heartbeat-monitor
|
||||
- Any future "OpenClaw" projects
|
||||
|
||||
**User's Projects (Matt Bruce / mbrucedogs):**
|
||||
- Bedrock
|
||||
- Andromida
|
||||
- SelfieCam
|
||||
- TheNoiseClock
|
||||
- CasinoGames
|
||||
- SecureStorageSample
|
||||
- LocalData
|
||||
- Any iOS/mobile projects
|
||||
|
||||
### BEFORE Committing - Check & Switch:
|
||||
|
||||
```bash
|
||||
# Check current identity
|
||||
git config user.name
|
||||
git config user.email
|
||||
|
||||
# If committing to USER'S project, switch to:
|
||||
git config user.name "Matt Bruce"
|
||||
git config user.email "mbrucedogs@gmail.com"
|
||||
|
||||
# If committing to MY project, switch to:
|
||||
git config user.name "OpenClaw Bot"
|
||||
git config user.email "ai-agent@topdoglabs.com"
|
||||
|
||||
# Then commit as normal
|
||||
git add -A && git commit -m "message"
|
||||
```
|
||||
|
||||
### Visual Reminder:
|
||||
- **Web projects (Next.js/React)** = Me
|
||||
- **iOS projects (Swift/Xcode)** = User
|
||||
- **Infrastructure/DevOps** = Me
|
||||
- **When in doubt, ASK or check Gitea org**
|
||||
|
||||
### Quick Check:
|
||||
```bash
|
||||
# This shows who the commit will be authored as
|
||||
git config user.name && git config user.email
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Web Development Standards
|
||||
|
||||
### Responsive Design (REQUIRED)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user