-
Notifications
You must be signed in to change notification settings - Fork 4.9k
.git folder staged by running 'git add .' #628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you provide more context? There may be many ways to get Claude to run
Without more information, it will be hard to offer you much help. |
just met this issue. did undo to 5 commits up to committed .git folder, copied backup of files, then did hard reset to last commit before .git appears in log, replaced files from backup and committed again, but well, lost history. |
Describe the bug
Claude called
git add .
, which resulted in the .git folder itself being added to gitTo Reproduce
Steps to reproduce the behavior:
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.
The text was updated successfully, but these errors were encountered: