Git Operations Skill
Version control operations for Git repositories.
Allowed Operations
- Clone repositories
- Create branches
- Switch branches
- Commit changes
- Push to remote
- Pull from remote
- Fetch updates
- View status, log, diff
Forbidden Operations
These require explicit user approval:
- Force push (
--force) - Rebase
- Reset
--hard - Delete remote branches
- Modify git hooks
- Change git config globally
Constraints
- No direct commits to
mainormaster - Branch names must follow convention
- Commit messages must follow conventional commits
Quick Branch Reference
<type>/<issue-id>-<short-description>
feature/PROJ-123-add-login
fix/PROJ-456-null-pointer
chore/update-dependencies
Types: feature, fix, chore, docs, refactor
For complete naming rules, see BRANCH-NAMING.md.
Quick Commit Reference
<type>(<scope>): <description>
feat(auth): add login endpoint
fix(api): handle null response
docs(readme): update setup guide
Types: feat, fix, docs, style, refactor, test, chore
For complete format, see COMMIT-CONVENTIONS.md.
Safety Checks
Before any operation:
- Verify working directory is clean
- Verify on correct branch
- Check for uncommitted changes
Example Usage
Create branch feature/PROJ-123-user-auth
Commit changes with message "feat(auth): add login endpoint"
Push current branch to origin
Show git status and recent commits
Converted and distributed by TomeVault — claim your Tome and manage your conversions.