git-operations

Manage Git branches, merges, cherry-picks, and conflict resolution with safety protocols.

1|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/komluk/scaffolding.template --skill git-operations-komluk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-operations
Source: https://github.com/komluk/scaffolding.template/tree/main/stacks/_common/.claude/skills/git-operations
Command: npx skills add https://github.com/komluk/scaffolding.template --skill git-operations-komluk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides standardized patterns and safety protocols for managing Git repositories, preventing data loss and ensuring consistent branching strategies.

Core Features & Use Cases

  • Branch Management: Follows defined conventions for main, feature, and backup branches.
  • Safe Operations: Implements pre-operation checks and backup strategies before destructive actions like merging or cherry-picking.
  • Conflict Resolution: Offers clear steps for resolving merge conflicts.
  • Push Safety: Enforces rules to prevent accidental force pushes and ensure successful deployments.
  • Use Case: Before making significant changes, use this Skill to automatically create a backup branch, ensuring you can easily revert if needed.

Quick Start

Use the git-operations skill to create a backup branch before merging.

Frequently Asked Questions about git-operations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent data loss when managing Git branches before a major merge?

To prevent data loss during Git branch management, you can create a backup branch before executing destructive actions. This ensures you can easily revert your repository to a previous state if a merge or cherry-pick fails.

What is the best way to resolve Git merge conflicts safely?

The best way to resolve Git merge conflicts is to follow standardized conflict resolution steps provided by safety protocols. This process ensures data integrity while systematically addressing divergent code changes within your version control workflow.

How do I stop accidental force pushes during Git deployments?

You can stop accidental force pushes during Git deployments by enforcing strict push safety rules. These protocols prevent accidental overwrites and ensure successful, consistent version control practices across your development workflow.

When do I need to create a backup branch in Git?

You need to create a backup branch in Git before making significant changes such as merging or cherry-picking. This pre-operation check strategy ensures you can easily revert your codebase if the subsequent operations cause issues.