git-essentials

Provide Git command references and workflows for version control operations.

18|2|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/yuanyuekejiJN/AivoClaw --skill git-essentials-yuanyuekejijn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-essentials
Source: https://github.com/yuanyuekejiJN/AivoClaw/tree/main/extraSkills/git-essentials-1.0.0
Command: npx skills add https://github.com/yuanyuekejiJN/AivoClaw --skill git-essentials-yuanyuekejijn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes uncertainty about daily Git usage by consolidating the essential commands and workflows needed to version, branch, merge, and collaborate confidently.

Core Features & Use Cases

  • Version control fundamentals: Configure identity, initialize repos, clone projects, and reliably stage and commit changes.
  • Collaboration workflows: Manage branches, merge changes, resolve conflicts, and sync with remotes using fetch/pull/push.
  • History and recovery: Inspect logs, search commits, undo changes safely, and recover work using reset/revert/reflog and stash.
  • Advanced day-to-day needs: Use rebase, tags, cherry-pick, submodules, and clean up working directories without losing track.

Quick Start

Tell the AI: "Show me the correct Git commands to stage changes, commit them with a message, create a feature branch, and push it to the remote."

Frequently Asked Questions about git-essentials

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

FAQPage Schema
How do I undo a git commit and keep my changes staged?

To undo a git commit while keeping changes staged, use `git reset --soft HEAD~1`. This moves your HEAD pointer back one commit, leaving your files and index exactly as they were before the commit.

What is the difference between git revert and git reset?

Git reset moves the branch pointer backward, effectively erasing commits from history, while git revert creates a new commit that inverses the changes of a specific commit, preserving the original history safely for shared branches.

How do I resolve merge conflicts during a git branch merge?

To resolve merge conflicts during a git branch merge, open the conflicted files, manually edit the marked sections to keep the desired code, run `git add` to stage the resolved files, and finish with `git commit`.

When should I use git stash instead of committing changes?

Use git stash instead of committing when you need to temporarily save uncommitted changes to switch branches or pull updates without creating a messy, incomplete commit in your project history.

What's the best way to sync a local branch with a remote repository?

The best way to sync a local branch with a remote repository is using `git fetch` to download remote changes without modifying your working directory, followed by `git pull` or `git rebase` to integrate them.

Why does git rebase fail and how can I recover lost commits?

Git rebase can fail due to unresolved merge conflicts; you can recover lost commits or undo a failed rebase by using `git reflog` to find the previous HEAD state and running `git reset` to restore it.