Themata.AI
Themata.AI

Popular tags:

#developer-tools#ai-agents#llms#claude#ai-ethics#code-generation#openai#ai-safety#anthropic#open-source

AI is changing the world. Don't stay behind. Clear summaries, community insight, delivered without the noise. Subscribe to never miss a beat.

© 2026 Themata.AI • All Rights Reserved

Privacy

|

Cookies

|

Contact
claudedeveloper-toolsgitautomation

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

My automated tool is running git reset --hard origin/main in my project every 10 minutes · Issue #40710 · anthropics/claude-code

github.com

March 29, 2026

4 min read

Summary

A tool built by a user was identified as the cause of automatic git resets every 10 minutes, utilizing GitPython to hard-reset the working directory on a polling cycle. The issue was mistakenly attributed to Claude Code, but it was a result of the user's local setup affecting the same current working directory.

Key Takeaways

  • The tool running git reset --hard origin/main every 10 minutes was identified as a locally built tool using GitPython, not a bug in Claude Code.
  • The resets caused all uncommitted changes to tracked files to be lost, while untracked files remained intact.
  • The issue was reproducible, with evidence showing consistent resets at 10-minute intervals across multiple sessions.
  • The Claude Code process was confirmed as the only active process affecting the repository, with no external git processes involved.

Community Sentiment

Negative

Concerns

  • The reliance on `--dangerously-skip-permissions` indicates a lack of caution, which can lead to unpredictable behavior in AI applications.
  • The initial characterization of the issue suggests a misunderstanding of the context, potentially misleading the community about the reliability of Claude Code.
Read original article

Source

github.com

Published

March 29, 2026

Reading Time

4 minutes

Relevance Score

60/100

🔥🔥🔥🔥🔥

Why It Matters

This page is optimized for focused reading: quick context up top, a clean summary block, and a direct path to the original source when you want the full story.