Dev10x-git

Block force pushes to protected branches and automate non-interactive rebases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Brave-Labs/dev10x --skill dev10x-git-brave-labs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Dev10x-git
Source: https://github.com/Brave-Labs/dev10x/tree/main/codex-skills/dev10x-git
Command: npx skills add https://github.com/Brave-Labs/dev10x --skill dev10x-git-brave-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Use Dev10x:git to enforce guarded Git operations by blocking force pushes to protected branches and enabling unattended, non-interactive rebases during development workflows.

Core Features & Use Cases

  • Safe Push: Wraps git push with policies that block force-pushes to protected branches (default: main, master) and encourage safe alternatives.
  • Non-Interactive Rebase: Powers automated rebases via git-seq-editor.sh and git-rebase-groom.sh to sequence commits without editor prompts.
  • Guarded workflows: Easily integrate into local or CI environments by configuring GIT_PROTECTED_BRANCHES and settings.local.json to pre-approve the scripts.

Quick Start

Run the git-push-safe.sh wrapper before pushing to protected branches and use git-rebase-groom.sh for non-interactive rebases.

Frequently Asked Questions about Dev10x-git

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

FAQPage Schema
How do I prevent force pushes to protected branches like main or master?▼

To prevent force pushes to protected branches, you can use a safe push wrapper that enforces guarded Git operations. It blocks force pushes to branches like main and master, encouraging safe alternatives instead.

How can I automate non-interactive rebases without editor prompts in CI?▼

You can automate non-interactive rebases in CI by using a git sequence editor and rebase grooming scripts. These tools sequence commits automatically without requiring manual editor prompts.

What is the best way to configure unattended rebases for local development?▼

The best way to configure unattended rebases for local development is by setting up a rebase grooming workflow. This uses a sequence editor script to automate commit sequencing without interactive input.

Does this Git safety tool work in both local development and CI environments?▼

Yes, this Git safety tool works in both local development and CI environments. You can integrate it by configuring protected branches and pre-approving the scripts in your local settings.

Why should I use a safe push wrapper instead of standard git push?▼

You should use a safe push wrapper instead of standard git push to enforce guarded Git operations. It applies policies that block unsafe force pushes to protected branches, preventing accidental history overwrites.