Git — Git版本控制 nifi-cluster, community, Git版本控制, ide skills, 仓库设置, 日常工作流, 交互式staging, 提交消息, 改进提交, Claude Code, Cursor

v1.0.0

关于此技能

适用于需要版本控制和协作工作流管理的开发代理。 Git是一种版本控制系统,用于管理代码变更

功能特性

仓库设置命令(git init、git clone)
日常工作流命令(git status、git add、git commit)
交互式 staging(git add -p)
提交消息(git commit -m)
改进提交(git commit --amend)

# 核心主题

oriolrius oriolrius
[0]
[0]
更新于: 3/12/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
7/11
Quality Score
33
Canonical Locale
en
Detected Body Locale
en

适用于需要版本控制和协作工作流管理的开发代理。 Git是一种版本控制系统,用于管理代码变更

核心价值

赋予代理管理代码库更改的能力,使用基本的 Git 命令,如 `git init`、`git clone` 和 `git commit`,实现无缝的存储库设置和每日工作流管理,通过协议如远程存储库克隆和交互式暂存。

适用 Agent 类型

适用于需要版本控制和协作工作流管理的开发代理。

赋予的主要能力 · Git

使用 `git init` 初始化新存储库
使用 `git clone` 克隆远程存储库
使用 `git status` 和 `git add` 管理每日工作流

! 使用限制与门槛

  • 需要 Git 安装
  • 需要命令行接口

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

Git 是什么?

适用于需要版本控制和协作工作流管理的开发代理。 Git是一种版本控制系统,用于管理代码变更

如何安装 Git?

运行命令:npx killer-skills add oriolrius/nifi-cluster/Git。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

Git 适用于哪些场景?

典型场景包括:使用 `git init` 初始化新存储库、使用 `git clone` 克隆远程存储库、使用 `git status` 和 `git add` 管理每日工作流。

Git 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

Git 有哪些限制?

需要 Git 安装;需要命令行接口。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add oriolrius/nifi-cluster/Git。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    Git 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

Git

安装 Git,这是一款面向AI agent workflows and automation的 AI Agent Skill。支持 Claude Code、Cursor、Windsurf,一键安装。

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
Supporting Evidence

Git

Expert assistance with Git version control and collaborative workflows.

Essential Commands

Repository Setup

  • git init - Initialize new repository
  • git clone <url> - Clone remote repository
  • git remote add origin <url> - Add remote
  • git remote -v - List remotes

Daily Workflow

  • git status - Check working tree status
  • git add . - Stage all changes
  • git add -p - Interactive staging
  • git commit -m "message" - Commit with message
  • git commit --amend - Amend last commit
  • git pull - Fetch and merge from remote
  • git push - Push commits to remote

Branch Management

  • git branch - List local branches
  • git branch -a - List all branches (including remote)
  • git branch <name> - Create new branch
  • git checkout <branch> - Switch to branch
  • git checkout -b <name> - Create and switch to new branch
  • git branch -d <name> - Delete branch (safe)
  • git branch -D <name> - Force delete branch
  • git push origin --delete <branch> - Delete remote branch

Viewing History

  • git log - View commit history
  • git log --oneline --graph - Compact graphical history
  • git log --author="name" - Filter by author
  • git show <commit> - Show commit details
  • git diff - Show unstaged changes
  • git diff --staged - Show staged changes
  • git diff <branch1>..<branch2> - Compare branches

Undoing Changes

  • git restore <file> - Discard working changes
  • git restore --staged <file> - Unstage file
  • git reset HEAD~1 - Undo last commit (keep changes)
  • git reset --hard HEAD~1 - Undo last commit (discard changes)
  • git revert <commit> - Create new commit that undoes changes
  • git clean -fd - Remove untracked files

Stashing

  • git stash - Stash current changes
  • git stash list - List stashes
  • git stash pop - Apply and remove last stash
  • git stash apply - Apply last stash (keep in list)
  • git stash drop - Delete last stash

Advanced Operations

Rebasing

bash
1# Rebase current branch onto main 2git rebase main 3 4# Interactive rebase (squash, reorder, edit commits) 5git rebase -i HEAD~3 6 7# Continue after resolving conflicts 8git rebase --continue 9 10# Abort rebase 11git rebase --abort

Cherry-picking

bash
1# Apply specific commit to current branch 2git cherry-pick <commit-hash> 3 4# Cherry-pick without committing 5git cherry-pick -n <commit-hash>

Merging

bash
1# Merge branch into current 2git merge <branch> 3 4# Merge without fast-forward (create merge commit) 5git merge --no-ff <branch> 6 7# Abort merge 8git merge --abort

Conflict Resolution

bash
1# Show conflicts 2git status 3 4# After resolving conflicts in files 5git add <resolved-file> 6git commit 7 8# Use theirs/ours for entire file 9git checkout --theirs <file> 10git checkout --ours <file>

Git Workflows

Feature Branch Workflow

bash
1# Create feature branch 2git checkout -b feature/new-feature 3 4# Work and commit 5git add . 6git commit -m "Add new feature" 7 8# Update from main 9git checkout main 10git pull 11git checkout feature/new-feature 12git rebase main 13 14# Push feature branch 15git push -u origin feature/new-feature

Hotfix Workflow

bash
1# Create hotfix from main 2git checkout main 3git pull 4git checkout -b hotfix/critical-fix 5 6# Fix and commit 7git commit -am "Fix critical bug" 8 9# Merge back to main 10git checkout main 11git merge hotfix/critical-fix 12git push 13 14# Clean up 15git branch -d hotfix/critical-fix

Configuration

User Setup

bash
1git config --global user.name "Your Name" 2git config --global user.email "your@email.com"

Useful Aliases

bash
1git config --global alias.co checkout 2git config --global alias.br branch 3git config --global alias.ci commit 4git config --global alias.st status 5git config --global alias.lg "log --oneline --graph --all"

Editor

bash
1git config --global core.editor "vim"

Best Practices

  1. Commit Messages: Use clear, descriptive messages following conventional commits
  2. Small Commits: Make atomic commits that do one thing
  3. Pull Before Push: Always pull latest changes before pushing
  4. Branch Naming: Use descriptive names like feature/, bugfix/, hotfix/
  5. Never Force Push: Avoid git push --force on shared branches
  6. Review Changes: Use git diff before committing
  7. Protect Main: Never commit directly to main/master

Troubleshooting

Undo accidental commit to wrong branch

bash
1git reset HEAD~1 # Undo commit, keep changes 2git stash # Stash changes 3git checkout <correct-branch> 4git stash pop # Apply changes 5git add . 6git commit -m "message"

Fix merge conflicts

bash
1# View conflicts 2git status 3 4# Edit conflicting files (look for <<<<<<, ======, >>>>>>) 5# Remove conflict markers and keep desired code 6 7# Mark as resolved 8git add <file> 9git commit

Recover deleted branch

bash
1# Find commit hash 2git reflog 3 4# Recreate branch 5git checkout -b <branch-name> <commit-hash>

相关技能

寻找 Git 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具