Git

Manage daily Git workflows with safe push and conventional commits.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/zangxin75/openclaw-skills --skill git-zangxin75
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Git
Source: https://github.com/zangxin75/openclaw-skills/tree/main/git
Command: npx skills add https://github.com/zangxin75/openclaw-skills --skill git-zangxin75

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines your daily Git operations, ensuring safe practices for pushing, committing, and resolving conflicts, preventing common errors and improving collaboration.

Core Features & Use Cases

  • Safe Pushing: Enforces git push --force-with-lease and guides conflict resolution after rebase.
  • Conventional Commits: Promotes a standardized format for commit messages for better project history.
  • Branch Management: Provides commands for cleaning up local branches and rebasing feature branches.
  • Recovery Tools: Offers methods to undo commits and discard unwanted changes.
  • Use Case: When you need to push changes to a shared branch without overwriting others' work, or when you encounter merge conflicts and need a clear process to resolve them.

Quick Start

Use the git skill to safely push your current branch with force-lease.

Frequently Asked Questions about Git

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

FAQPage Schema
How do I safely push changes to a shared branch without overwriting others' work?

To safely push changes without overwriting others' work, use `git push --force-with-lease`. This safe pushing method checks remote branch references before updating, preventing accidental overwrites and improving collaboration on shared branches.

What is the best way to format commit messages for better project history?

The best way to format commit messages is using conventional commits. This standardized format structures your commit history, making project changes cleaner, more readable, and easier to track across collaborative version control workflows.

How do I resolve merge conflicts after a rebase?

To resolve merge conflicts after a rebase, follow a clear conflict resolution strategy. This involves identifying conflicting files, manually editing the changes, staging the resolved files, and continuing the rebase process to maintain a clean history.

Do I need Git installed locally to use this workflow?

Yes, you need Git installed locally. The workflow requires the Git executable to be available in your system's PATH to execute version control commands, manage branches, and perform operations like rebasing and pushing.

How can I undo a commit and discard unwanted changes in my local branch?

You can undo a commit and discard unwanted changes using dedicated recovery tools. These methods provide specific commands to revert commits and reset your working directory, allowing you to safely recover from mistakes during development.

How do I clean up local branches and rebase feature branches?

To clean up local branches and rebase feature branches, use dedicated branch management commands. These commands help you remove merged or stale local branches and rebase active feature branches to maintain a streamlined version control history.