用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bobcob7/dot-tools --skill git命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | git |
| description | Git commands, workflows, and troubleshooting |
| argument-hint | [command or question] |
| allowed-tools | Bash, Read |
Help with Git based on $ARGUMENTS.
git status # Show working tree status
git add <file> # Stage file
git add -p # Stage interactively (patch mode)
git commit -m "message" # Commit staged changes
git push # Push to remote
git pull # Fetch and merge
git branch # List branches
git branch <name> # Create branch
git checkout <branch> # Switch branch
git checkout -b <name> # Create and switch
git merge <branch> # Merge branch into current
git rebase <branch> # Rebase current onto branch
git branch -d <name> # Delete branch (safe)
git branch -D <name> # Delete branch (force)
git log --oneline # Compact log
git log --graph # With branch graph
git log -p <file> # Show changes to file
git blame <file> # Show who changed each line
git show <commit> # Show commit details
git checkout -- <file> # Discard working changes
git reset HEAD <file> # Unstage file
git reset --soft HEAD~1 # Undo commit, keep changes staged
git reset --hard HEAD~1 # Undo commit, discard changes
git revert <commit> # Create commit that undoes changes
git stash # Stash changes
git stash pop # Apply and remove stash
git stash list # List stashes
git stash drop # Remove stash
git remote -v # List remotes
git remote add <name> <url> # Add remote
git fetch <remote> # Fetch without merge
git push -u origin <branch> # Push and set upstream
git checkout -b feature/namegit push -u origin feature/namegit fetch origingit rebase origin/maingit push --force-with-lease