reset
Discard local work and match each current branch to origin.
Usage
git-wrangler reset [options]Warning: This command permanently discards uncommitted changes and local commits that are not on the matching remote branch.
Quick start
git-wrangler reset
What it does
reset refreshes the current branch from origin, then previews repositories whose local and remote branches differ. The preview shows the branch, ahead/behind counts, and whether uncommitted changes exist.
After confirmation, each candidate is hard-reset to its matching origin branch. Repositories that are already in sync, have no matching remote branch, or are not on a branch are skipped.
Before you run it
Commit, stash, or copy anything you want to keep. The discarded work is not added to Git Wrangler’s history rewrite rollback.
Options
| Option | Default | What it does |
|---|---|---|
--repo <path> |
Whole workspace | Reset exactly one repository. |
--yes, -y |
Off | Skip the confirmation after the preview. |
--guided |
Off | Choose options through prompts. |