push

Push feature branches to remote with safety checks and pre-push validation.

Updated Jul 10, 2025
One-click install
npx skills add https://github.com/damilola-elegbede-org/claude-config-5ad01dbe --skill push-damilola-elegbede-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: push
Source: https://github.com/damilola-elegbede-org/claude-config-5ad01dbe/tree/main/system-configs/.claude/skills/push
Command: npx skills add https://github.com/damilola-elegbede-org/claude-config-5ad01dbe --skill push-damilola-elegbede-org

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates unsafe push operations by ensuring repository state is clean, tests pass when configured, and pre-push checks run before changes reach remote.

Core Features & Use Cases

  • Safe Push: Validates repository state, runs tests if configured, and pushes with pre-push hooks.
  • Force-safe Options: Supports --force-with-lease for safe forced pushes.
  • Dry-Run Preview: Shows what would be pushed without executing.

Quick Start

Execute /push to push your current branch to the remote with validation.

Frequently Asked Questions about push

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

FAQPage Schema
How do I safely push changes to a remote git branch with validation checks?

Safely push changes by validating repository state, running configured tests, and executing pre-push hooks before sending commits to the remote. This ensures your feature branch remains clean and prevents broken code from reaching the shared repository.

What is git force-with-lease and when should I use it for pushing?

Git force-with-lease is a safer forced push method that overwrites remote refs only if no upstream changes occurred. Use it to safely force push feature branches without accidentally erasing teammates' newly pushed commits.

Can I preview what a git push would send to the remote without executing it?

Yes, you can preview a git push using a dry-run. This shows exactly what commits and branch updates would be sent to the remote repository without actually transferring data or modifying the remote state.

How do pre-push hooks and tests protect my git workflow?

Pre-push hooks and tests protect your git workflow by automatically validating repository state and running test suites before changes reach the remote. This catches integration failures early, ensuring stable code delivery.

Does branch protection work with pre-push validation for feature branches?

Pre-push validation complements branch protection by running safety checks and tests locally before attempting to push feature branches. This prevents invalid commits from being sent to the remote, avoiding rejected push errors and maintaining repository integrity.