Command Palette

Search for a command to run...

Назад к скиллам
скилл № 43450

git

Guide for Git operations including commits, branches, rebasing, and conflict resolution. Use when working with version control, creating commits, managing…

БесплатноБез исполняемых скриптов
vinnie357от vinnie357★ 30 звёзд на GitHub

Установить git в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Git Operations

Activate when creating commits, managing branches, creating pull requests, resolving conflicts, or following Git workflows.

Anti-fabrication

This skill follows core:anti-fabrication. The commit/PR format rules are house convention, but the "Remote and Authentication Conventions" section makes specific, checkable claims about Git and the GitHub API — this is the one skill in this set that does, and its claims are verified in different ways:

  • Anonymous access to GitHub Releases on a private repo returns 404, not 403. Confirmed against GitHub's own documentation, cited in sources.md: "GitHub uses a 404 Not Found response instead of a 403 Forbidden response to avoid confirming the existence of private repositories."
  • SSH key auth bypasses the workflow OAuth scope that HTTPS push enforces. GitHub documents the workflow scope requirement for OAuth apps/PATs pushing Actions workflow files (cited in sources.md), but does not document the SSH-side exemption as a general principle — that half is empirically observed, not centrally documented: pushing a .github/workflows/*.yml change over HTTPS with a token lacking workflow scope is rejected ("Refusing to allow an OAuth App to create or update workflow ... without workflow scope"); the identical push over SSH succeeds.
  • The Worktrees section's mechanics (index and HEAD per-worktree, refs/stash shared, add refusing a branch already checked out, -d refusing after a squash merge, the $WORKTREE_ROOT root formula) are confirmed against git 2.54.0 man pages and reproduced by execution in a throwaway repo, cited in sources.md.

Don't assert git/gh/glab CLI or GitHub/GitLab API behavior this skill doesn't already cover without checking the current docs, or testing it directly when the docs don't say — CLI flags and API responses do change across versions.

  • glab command/flag names throughout this skill and references/gitlab-mr.md come from the official docs at https://docs.gitlab.com/cli/ (per-command pages cited in sources.md), NOT from local execution — glab was not installed on the machine where this content was authored, and no command here was tested by running it. No glab version is pinned deliberately: pinning a version never actually run against would overstate the evidence. Re-check with glab <cmd> --help before relying on a flag.

Commit Format

Follow the Conventional Commits specification:

type(scope): description

optional body

optional footer

Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

Subject line rules:

  • Keep under 50 characters
  • Lowercase after type prefix
  • No period at the end
  • Use imperative mood ("add" not "added" or "adds")

Body (optional): Wrap at 72 characters. Focus on the what and how — never describe the changes themselves, as the git diff handles that.

Footer (optional): Reference issues (Closes #123), note breaking changes (BREAKING CHANGE: ...).

NEVER add agent attribution anywhere in Git or a forge. No robot emoji (🤖), "Generated with Claude Code", AI signatures, Co-Authored-By, Signed-off-by, or similar credit. This covers commits and trailers; branch names and descriptions; tags and annotations; PR/MR titles, bodies and descriptions; issues and their titles/descriptions; comments, reviews, discussions, release notes, and API-posted content. Apply the rule to every creation, edit, reply, and merge message, regardless of tool or agent. Describe the work without crediting the assistant. Ordinary product names and required source/license notices are not assistant signatures.

Check before publishing, not only during review. Inspect the final outgoing title, name, message, description, and any body file before every Git/forge write. Remove attribution inherited from templates, generated text, or commit history. Never append a signature after checking. Core and all-skills register a plugin-level attribution hook for Bash calls; its supported command forms and limits are documented in references/no-attribution.md. Other tools still require the same pre-publication check.

Configure Claude Code's built-in attribution too. When setting up the no-attribution policy, merge "attribution": {"commit": "", "pr": "", "sessionUrl": false} into the chosen settings file, preserving unrelated settings. Use ~/.claude/settings.json for the user's projects on this machine or .claude/settings.json for a shared project policy. Read native configuration and verification for precedence, version compatibility and behavior checks. Keep the hook and pre-publication checks active; this setting controls Claude Code's commit/PR attribution, not all Git/forge output.

Examples:

# Single-line (pre
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • hooks/block-attribution.nu
  • hooks/block-merge-writes.nu
  • hooks/scan-merge-writes.nu
  • references/advanced.md
  • references/build-source-staleness.md
  • references/commands.md
  • references/gitlab-mr.md
  • references/no-attribution.md
  • references/shallow-clone-remotes.md
  • references/troubleshooting.md

FAQ

Что делает скилл git?

Guide for Git operations including commits, branches, rebasing, and conflict resolution. Use when working with version control, creating commits, managing branches, or resolving merge conflicts.

Как установить скилл git?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл git запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить git с