Live data from Hacker News

Claude Code runs Git reset –hard origin/main against project repo every 10 mins

github.com

191–200 of 219 posts

Re: Claude Code runs Git reset –hard origin/main against project repo every 10 mins

#193

From the issue author: > Update: Root cause found — this was a bug in a tool I built that was running locally for testing, not Claude Code.

Yep. False report.

https://github.com/anthropics/claude-code/issues/40710#issue...

Re: Claude Code runs Git reset –hard origin/main against project repo every 10 mins

#195

From the issue author: > Update: Root cause found — this was a bug in a tool I built that was running locally for testing, not Claude Code.

The entire ticket was most likely created by Claude Code's analysis, i.e. hallucinated. Absurd.

Re: Claude Code runs Git reset –hard origin/main against project repo every 10 mins

#196

Earlier quoted context omitted.

I was thinking surely scheduled tasks need to be explicitly invoked but nope: https://code.claude.com/docs/en/scheduled-tasks#set-a-one-ti... Some people are upset at my brave new world characterization, but yeah even as someone deriving value from Claude Code we've jumped the shark on AI in development. Either the industry will face that reality and recalibrate, or in 20 years we're going to look back on these days…

I agree that it's worrying that we're moving more and more towards implicit and opaque state. Hiding what exactly is getting edited, very limited tooling to check what the subagents are doing exactly, setting up scheduled and recurring tasks without it being obvious etc. It's tending more and more towards pushing the user to treat the whole thing as a pure chat interface magic black box, instead of a rich dashboard t…

[dead]

Re: Claude Code runs Git reset –hard origin/main against project repo every 10 mins

#197
Update from the author: https://github.com/anthropics/claude-code/issues/40710#issue...

"Update: Root cause found — this was a bug in a tool I built that was running locally for testing, not Claude Code.

When the tool's configuration pointed at a local working directory, it would hard-reset that directory every poll cycle to reflect the remote — destroying all uncommitted changes to tracked files, exactly as described in the issue."

Re: Claude Code runs Git reset –hard origin/main against project repo every 10 mins

#198
post #64

I think this post potentially mischaracterises what may be a one off issue for a certain person as if it were a broader problem. I'm guessing some context has been corrupted?

It's not a one off issue - it has happened to me a few times. It has once even force pushed to github, which doesn't allow branch protection for private personal projects. Here's an example. 1) claude will stash (despite clear instructions never to do so). 2) claude will use sed to bulk replace (despite clear instructions never to do so). sed replacements make a mess and replaces far too many files. 3) claude restore…

I don't understand how people in this day and age have not learned what the pink elephant problem is.

If you tell AI not to do something, you make it incomprehensibly more likely it will happen.

Use affirming language. Why do you think negative prompts don't exist in diffusion anymore?

Re: Claude Code runs Git reset –hard origin/main against project repo every 10 mins

#199
post #108
post #64

Earlier quoted context omitted.

It's not a one off issue - it has happened to me a few times. It has once even force pushed to github, which doesn't allow branch protection for private personal projects. Here's an example. 1) claude will stash (despite clear instructions never to do so). 2) claude will use sed to bulk replace (despite clear instructions never to do so). sed replacements make a mess and replaces far too many files. 3) claude restore…

Why do you expect that a weighted random text generator will ever behave in predictable way? How can people be so naive as to run something like Claude anywhere other than in a strictly locked down sandbox that has no access to anything but the single git repo they are working on (and certainly no creds to push code)? This is absolutely insane behavior that you would give Claude access to your GitHub creds. What happ…

Trust issues start at home.

If you can't trust yourself, you will never be able to trust anyone else.

If you believe the AI is out to get you, that's certainly the reality you will manifest.

Re: Claude Code runs Git reset –hard origin/main against project repo every 10 mins

#200

From the issue author: > Update: Root cause found — this was a bug in a tool I built that was running locally for testing, not Claude Code.

"I built" is probably doing a lot of work here. Odds are it was some vibe-coded tool.
Post reply on HN