-
Notifications
You must be signed in to change notification settings - Fork 0
gitrefresh
Brandon Shoop edited this page Jun 2, 2026
·
1 revision
Resets a local clone to a clean, up-to-date state against the given branch, then prunes stale local branches.
gitrefresh # resets to main
gitrefresh dev # resets to dev| Argument | Default | Description |
|---|---|---|
branch |
main |
Branch to check out and pull |
- Checks out
branch - Fetches from origin
- Pulls latest
- Runs
gitprune --forcetwice — the second pass catches branches whose delete tracking refs were only cleaned up in the first pass
All git output is piped through show_progress.