Git Workflow Skill
Use this skill when performing git operations, branch management, or collaborative workflows.
Workflow
- Check current state:
git status,git branch,git log - Stage changes: use
git addwith appropriate scope - Create commits: write clear, conventional commit messages
- Push changes: handle remote operations safely
- Handle conflicts: use proper merge/rebase strategies
Key Tools
git_status- Check repository stategit_diff- View unstaged/staged changesgit_commit- Create commitsgit_branch- Manage branchesgit_push/git_pull- Remote operationsgit_merge/git_rebase- Integrate changes
Rules
- Always verify
git statusbefore destructive operations - Use
--dry-runfor risky operations (push, force push, reset) - Prefer interactive rebase for commit history cleanup
- Write commit messages following conventional commits format
- Never commit secrets, keys, or credentials
- Create feature branches for non-trivial changes
Branch Naming
feature/- New featuresfix/- Bug fixesrefactor/- Code refactoringdocs/- Documentationtest/- Test additions
References
- See the workflow and rules sections above for advanced workflows and common scenarios.
Source: TeaEntityLab/teaAgent — distributed by TomeVault.