Re:Claude Code runs Git reset –hard origin/main against proj...
by namibj on Sunday March 29, 2026 @09:11PM
(#47569307)
That's a fee for not running a local git proxy with permissions enforcement that holds onto the GitHub credentials in place of Claude.
[ Parent
| on HN ]
Re:Claude Code runs Git reset –hard origin/main against proj...
by verdverm on Sunday March 29, 2026 @09:20PM
(#47569367)
Or putting the code and .git in a sandbox without the credentials
Re:Claude Code runs Git reset –hard origin/main against proj...
by mikaraento on Monday March 30, 2026 @01:21AM
(#47570634)
Do you know of a good ready-made implementation of such a proxy? I’ve been looking for one.
GitHub is also a worry in terms of exfiltration. You can’t block pushes to public repos unless you are using GitHub Enterprise Managed Users afaict.