git-push

Validate local branch state and rebase before pushing to shared remotes.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/qol-tools/qol-skills --skill git-push-qol-tools
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-push
Source: https://github.com/qol-tools/qol-skills/tree/main/plugins/qol-dev-conventions/skills/git-push
Command: npx skills add https://github.com/qol-tools/qol-skills --skill git-push-qol-tools

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures safe, consistent pushes by enforcing pre-push checks and a rebase workflow, preventing messy histories and accidental overwrites on shared remotes.

Core Features & Use Cases

  • Validate local branch state and identify the correct repo/branch to push.
  • Run a repo-native verification workflow before performing push operations.
  • Pull with --rebase to synchronize with the remote and mitigate divergence before pushing.
  • Handle divergent histories for qol workspace repos and provide clear guidance if conflicts occur.

Quick Start

Push your current branch to the remote after ensuring local changes are committed and the branch is up to date.

Frequently Asked Questions about git-push

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

FAQPage Schema
How do I safely push a git branch without overwriting remote changes?

Safely pushing a git branch requires running pre-push checks and pulling with --rebase to synchronize divergent local histories before the actual push operation.

What is a pre-push rebase workflow in version control?

A pre-push rebase workflow synchronizes your local branch with the remote by rebasing commits before pushing, ensuring a linear history and preventing accidental overwrites on shared remotes.

How do I handle divergent histories when pushing to a shared remote?

Handle divergent histories when pushing by validating local state and pulling with --rebase to align commits, which provides clear guidance if integration conflicts occur during the synchronization.

Does this git push workflow work with local repositories and qol workspaces?

Yes, the git push workflow applies to both local Git repositories and qol workspace workflows, managing divergent histories and enforcing pre-flight checks for developers pushing to shared remotes.

Why should I use pre-flight checks before pushing my git branch?

Pre-flight checks prevent messy histories and accidental overwrites by validating your local branch state and running repo-native verification workflows before executing the push operation.