Git Push, Pull & Fetch Operations

Manage Git push, pull, and fetch operations with safety checks.

3|1|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/nashgao/mqtt-client --skill git-push-pull-fetch-operations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Git Push, Pull & Fetch Operations
Source: https://github.com/nashgao/mqtt-client/tree/main/.claude/skills/git/push
Command: npx skills add https://github.com/nashgao/mqtt-client --skill git-push-pull-fetch-operations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a robust and safe way to manage Git remote operations, preventing accidental data loss and ensuring code quality before pushing.

Core Features & Use Cases

  • Safe Pushing: Enforces branch protection, runs quality checks (lint, test, build), and prevents force pushes to sensitive branches.
  • Smart Pulling: Offers rebase, merge, or fast-forward options with conflict resolution guidance and handles stashed changes.
  • Efficient Fetching: Provides options for fetching from all remotes, specific branches, with tags, or pruning deleted branches.
  • Use Case: Before pushing code to the main branch, this Skill will automatically detect it's protected, create a new feature branch based on your commit message, push to that new branch, and provide a command to create a pull request.

Quick Start

Safely push your local changes to the remote repository.

Frequently Asked Questions about Git Push, Pull & Fetch Operations

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

FAQPage Schema
How do I prevent accidental force pushes to protected branches like main?

To prevent accidental force pushes, this Git workflow Skill enforces branch protection by detecting sensitive branches, blocking direct pushes, creating a new feature branch, and providing a pull request command instead.

How to run lint, test, and build checks before a code push?

To run lint, test, and build checks before a code push, this Skill utilizes pre-push quality gates that automatically execute validation workflows and halt the remote update if any specified quality check fails.

What is the best way to handle Git pull conflicts and stashed changes?

The best way to handle Git pull conflicts is using guided conflict resolution, which offers rebase, merge, or fast-forward options while safely managing stashed changes during the remote synchronization process.

Can I fetch from all remotes and prune deleted branches simultaneously?

Yes, you can fetch from all remotes and prune deleted branches simultaneously using this Skill's efficient fetching options, which also support fetching specific branches and tags during remote repository updates.

Does this Git workflow automation support multi-remote pushes and selective file pushes?

Yes, this Git workflow automation supports advanced scenarios including multi-remote pushes and selective file pushes, allowing you to synchronize specific code updates across multiple remote repositories safely.