Enforce git/gh CLI separation rule for version control operations
Core Principle: Use git CLI for local operations, gh CLI only for GitHub PR operations
git CLIgit add - Stage changesgit commit - Create commitsgit checkout / git switch - Branch operationsgit push / git pull - Remote synchronizationgit status / git log - Status and historygit merge / git rebase - Integration operationsgit diff - View changesgh CLIgh pr create - Create pull requestsgh pr list - List pull requestsgh pr view - View pull request detailsgh pr merge - Merge pull requestsgh pr checkout - Checkout PR branchgh issue create / gh issue list - Issue operationsgh for: commits, staging, branching, pushing/pullinggit for: PR creation, PR management, issue operationsgit for core version control operationsgh only for GitHub-specific web UI operationsdocs/ai/workflows/git-commit-push-policy.md as the project-wide
source of truth.ā Correct:
git add .
git commit -m "feat: add new feature"
git push origin feature-branch
gh pr create --title "Add new feature" --body "Description here"
ā Incorrect:
gh repo clone owner/repo # Use git clone instead
gh release create # Use git tag + gh release create is fine
Before executing any git/gh command, verify:
gitghgit for core operations