push

Push the current Git branch to origin with submodule scoping and pre-push checks.

27|4|Updated Jun 19, 2025
One-click install
npx skills add https://github.com/markmhendrickson/neotoma --skill push-markmhendrickson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: push
Source: https://github.com/markmhendrickson/neotoma/tree/main/.cursor/skills/push
Command: npx skills add https://github.com/markmhendrickson/neotoma --skill push-markmhendrickson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of pushing your current Git branch to the remote 'origin', ensuring your code is backed up and shareable, while also handling potential conflicts and submodule operations.

Core Features & Use Cases

  • Safe Pushing: Checks for the existence of the 'origin' remote and verifies the current branch before pushing.
  • Submodule Support: Can scope push operations to a specific Git submodule, allowing for granular control in monorepos.
  • Upstream Management: Automatically sets the upstream branch on the first push and checks if the local branch is ahead, behind, or diverged from the remote.
  • Use Case: After completing a feature, you can use this skill to push your local branch to GitHub, ensuring it's backed up and ready for a pull request, even if you're working within a specific submodule of a larger project.

Quick Start

Use the push skill to push your current branch to origin.

Frequently Asked Questions about push

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

FAQPage Schema
How do I push my current Git branch to origin safely?

To push your current Git branch to origin safely, this Skill verifies the remote exists, checks if the local branch is ahead or behind, and automatically sets the upstream tracking branch before executing the push command.

Can I scope a git push to a specific submodule?

Yes, you can scope a git push to a specific submodule. This Skill supports granular code deployment in monorepos by targeting and pushing commits from a single Git submodule to the origin remote.

What happens if my local branch has diverged from the remote?

If your local Git branch has diverged from the remote, this Skill includes pre-push checks that detect the divergence and post-push error handling to prevent overwriting remote changes during the deployment operation.

Do I need to manually set the upstream branch before pushing?

No, you do not need to manually set the upstream branch. This Skill automates upstream management by setting the tracking branch on the first push of your current Git branch to the origin remote.

Why does my git push fail when the origin remote is not configured?

A git push fails without a configured origin because the remote endpoint is missing. This Skill prevents this error by running a pre-push check for the origin remote's existence before attempting any code deployment.

What is the best way to automate pushing local commits to GitHub?

The best way to automate pushing local commits to GitHub is using a script that validates branch status and upstream tracking. This Skill handles pre-push checks and post-push errors to ensure your code deployment completes successfully.