Skip to content

.git folder staged by running 'git add .' #628

Description

@vekazt

Describe the bug
Claude called git add ., which resulted in the .git folder itself being added to git

To Reproduce
Steps to reproduce the behavior:

  1. Get Claude to call git add . (this can happen in multiple ways, so not 'exact steps')

Expected behavior
A clear and concise description of what you expected to happen.

Logs
If applicable, add logs to help explain your problem.
`git status
On branch main
Your branch is ahead of 'origin/main' by 2 commits.
(use "git push" to publish your local commits)

Changes not staged for commit:
(use "git add/rm ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: ./.git/config
modified: ./.git/index
modified: ./.git/logs/HEAD
`

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions