Ws Reset — Git skill for Claude Code
Reset the current branch to main, fetch upstream, and update submodules.
How to install Ws Reset
Installs to ~/.claude/commands/tinyhumansai-openhuman-ws-reset.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/tinyhumansai/openhuman/HEAD/.claude/commands/ws-reset.md -o ~/.claude/commands/tinyhumansai-openhuman-ws-reset.md Restart Claude Code, or start a new session, for it to be picked up.
What Ws Reset does
description: Reset the current branch to main, fetch upstream, and update submodules. allowed-tools: Bash
Run the following steps in order. Stop and surface the error if any step fails — do not paper over a failure.
bash scripts/shortcuts/ws-reset.sh
git status
The helper performs the destructive steps (`git fetch upstream`, `git checkout main`, `git reset --hard upstream/main`, `git submodule update --init --recursive`) behind a working-tree-dirty guard. Pass `--force` on
Alternatives in Git
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- Intel — On-demand intelligence fetch for a target — CVEs, disclosed reports, new features 3.8k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Submodules
Check for upstream updates, sync forks, and update git submodules (cproc, qbe, wla-dx)
Update Branch
Merge main into the current feature branch
Reset Branch
Switch to main and delete previous branch
Update Submodules
Update the branches/ release submodules to the latest commit of their tracked
Rebase Master
Fetch origin/master and rebase the current branch onto it
Fr
Fetch from remote and rebase current branch onto the remote branch
Related Agents
Mr Handler
Handle a GitLab MR for the current (or specified) branch — detect whether to create a new MR or update an exis
Compare Branch
Compare current branch vs main/staging — changes, risk assessment, merge readiness.
Git Specialist
Git workflow specialist. Use for any git work — staging, conventional commits, branch creation, pushing with u