tinyhumansai

Ws Reset — Git skill for Claude Code

Git community

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

Terminal
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 Repository