Re:Claude Code runs Git reset –hard origin/main against proj...
by 0xbadcafebee on Sunday March 29, 2026 @09:40PM
(#47569487)
You could use a wrapper that parses all the command-line options. Basically you loop over "$@", look for strings starting with '-' and '--', skip those; then look for a non-option argument, store that as a subcommand; then look for for more '-' and '--' options. Once that's all done you have enough to find subcommand "reset", subcommand option "--hard". About 50 lines of shell script.
[ Parent
| on HN ]
There are no comments on this comment yet.