-
Notifications
You must be signed in to change notification settings - Fork 2.6k
git commit marks all files in my repo for deletion! (Git 2.24.1.2) #2431
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
I can't reproduce this.
That sounds wrong. A |
This limits rather drastically what anybody else can do to help you. Could you please verify that the same problem occurs in a freshly In other words: please do spend some time to provide a Minimal, Complete & Verifiable Example (what you provided as an MCVE starts by creating a branch in your repo, which is clearly neither minimal, nor verifiable in others' setups). |
I had the exact same problem and it is also a private repo I cannot share. I can confirm that cloning the repo again "fixed it". The .git/config files are the same except the failing repo has
The problem is very repeatable and is definitely the commit command. I modified a single line and staged it and the status command showed exactly what one would expect. Then, running just Perhaps it is related to caching on Windows? I've saved the old repo and can perform some tests if it would help. Any suggestions? |
Yes. Reduce your private repository that you cannot share into a very small, verifiable example that works elsewhere and that you can share. Like, if you suspect that It would be very unreasonable for me to even try to reproduce this problem here; For what I know, this problem is probably system-specific and I never encountered this myself, so all my time trying to come up with a reproducer would most likely be wasted. |
My company (and I would guess most) are not going to allow private repos to be shared. They contain a massive amount of history and there is no good way to reduce them to something useful, and even if there was I'd never get approval. This issue is important to the maintainers of Git for Windows, but my IT, security, and legal depts aren't going to see it is a priority. That's why I saved it and offered to run some tests locally. As an open source maintainer also, I get where you are coming from, but there isn't a better way unless someone with a public repo also reports the problem. I've confirmed that if I simply zip up the repo and unzip it elsewhere, the new copy does not exhibit the same problems. So even sharing the entire repo as-is wouldn't do any good, but just testing that is a new clue. |
I never asked you to do that. Read again what I wrote. I asked you to build up a minimal example, based on the shape of your private repository. Because you're the only one who can do that. Trying to guess what you could try to figure out the problem is most likely to cost an insane amount of time and lead nowhere.
So this is interesting. By "zip up the repo" do you refer to the It might make more sense to "tar it up" using |
@mkleehammer can I suggest that if you have a look at It might not, but at least gives you some options for some testing. Hope that helps. |
After upgrading Git for Windows to version 2.24.1.2, when I try to commit changes to one file, every file in my repo is marked for deletion. This obviously not good. Same effect reproduced by other members of my team.
Setup
defaults?
to the issue you're seeing?
n/a
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git status shows the new file staged
All existing files in repo listed for deletion
1 new file not staged
URL to that repository to help us with testing?
no, sorry
The text was updated successfully, but these errors were encountered: