News for hackers. Stuff that matters.
Re:Claude Code runs Git reset –hard origin/main against proj... by mtndew4brkfst on Sunday March 29, 2026 @09:06PM (#47569273)
It has once even force pushed to github, which doesn't allow branch protection for private personal projects.

This is only restricted for *fully free* accounts, but this feature only requires a minimum of a paid Pro account. That starts around $4 USD/month, which sounds worth it to prevent lost work from a runaway tool.

Re:Claude Code runs Git reset –hard origin/main against proj... by jeswin on Sunday March 29, 2026 @09:28PM (#47569416)
I was on one till recently, maybe I still am. But does it work for orgs? I put some projects under orgs when they become more than a few projects.
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.
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.