Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Covers the core Git commands for version control: staging, committing, branching, merging, and syncing with remotes. Includes workflows for feature branches, hotfixes, and fork syncing, plus advanced operations like rebasing, stashing, and cherry-picking.
Having all essential commands in one reference eliminates switching between official docs, man pages, and Stack Overflow answers mid-task.
When to use it
- Creating a feature branch and pushing it for code review
- Undoing a mistaken commit before it reaches the remote
- Syncing a forked repo with its upstream source
- Finding which commit introduced a bug with git bisect
- Cleaning up commit history with interactive rebase before merging
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: how do I create a feature branch, commit changes, and push for review?
- 1Run git checkout -b feature/my-feature to create and switch to a new branch
- 2Edit files, then stage changes with git add .
- 3Commit with git commit -m 'Add my feature'
- 4Push the branch and set upstream with git push -u origin feature/my-feature
Feature branch pushed to remote, ready for a pull request