diff --git a/AGENTS.md b/AGENTS.md index f09ab13..6bedeef 100644 --- a/AGENTS.md +++ b/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)