# Git Operations

> Git repository operations including branching, committing, pushing, and viewing history. Use for version control tasks. Destructive operations require explicit approval. Use when this capability is needed.

- Skill: `tomevault-io/git-operations-3` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/git-operations-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/git-operations-3/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/git-operations-3

---


# 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 `main` or `master`
- 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](references/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](references/COMMIT-CONVENTIONS.md).

## Safety Checks

Before any operation:
1. Verify working directory is clean
2. Verify on correct branch
3. 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](https://tomevault.io/claim/yoshikemolo) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

