Ait Git

Git commands for aitasks/aiplans directories — use ./ait git instead of plain git

majiayu000 d4444d0 2 files · 1.9 KB Updated 567 repo stars

File contents

Git Operations on Task/Plan Files

When running git commands that operate on files in aitasks/ or aiplans/ directories, always use ./ait git instead of plain git. This ensures correct branch targeting when task data lives on a separate aitask-data branch.

Usage

./ait git add aitasks/t42_foo.md
./ait git commit -m "ait: Update task t42"
./ait git push
./ait git status

How it works

  • If .aitask-data/ worktree exists (branch mode): ait git routes to git -C .aitask-data
  • If no worktree (legacy mode): ait git passes through to plain git

When to use

  • Any git add, git commit, git push, git rm involving files under aitasks/ or aiplans/
  • When committing task metadata changes (status, assignment, etc.)
  • When archiving or creating task files

When NOT to use

  • For code-related git operations (implementation commits go on the main branch as normal)
  • For git log, git diff on code files
  • The aitask shell scripts already use task_git() internally — no need to wrap script calls

majiayu000/claude-skill-registry-data/tree/main/bash/ait-git commit d4444d0deb

Frequently asked questions

npx skillmds add majiayu000/ait-git