-
Notifications
You must be signed in to change notification settings - Fork 600
Gitbutler wants to delete force delete files from repo #5651
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
Thanks a lot for reporting and for the video! Discarding the files also doesn't work and I have a feeling that these files have been removed from the index and the working tree, and this is what it picks up. Then, when discarding files, it might just try to remove it from disk and that does nothing as the file isn't there in the first place. Could you check with Thanks for your help. Edit: Maybe you could start GitButler from the terminal as well using |
Hi @Byron thanks for helping me out. I tried to restore the files when I run git status it does appear. However when I try to restore them it appears in my commit as deleted again. ![]() |
After delete this .git folder and initialising it again I am still getting this bug. its very weird. |
It is very strange indeed. Even if I locally remove a file from the worktree, and then discard that change in the GitButler UI, I have the expected effect as the file is restored, similar to what I thought for a moment that the files might be ignored, but when I do that the changes don't show up at all, I created #5662 for this. Maybe these files have |
@Byron I do have logs I can provide, however I am wary to share them because it may contain organisational data. |
@Byron seems to be with the reset_files and reset_files:create_nsapshot handle:recalculate_everything or something. |
Thanks for taking a look! If If so, it's somewhat unrelated to GitButler it seems, but maybe the redacted version of |
Restoring the files does does not help, gitbutler will mark them as deleted for some reason and would want to add it to the commit. the files do exists I have check the repo on our production branch and we do use them. There no errors just INFO logs. |
I see… unfortunately it remains a mystery what's happening here. Only one more thing - could you confirm that |
Hi @Byron! I'm here because this just happened to me, too. As soon as I quit GitButler, I could create the This is very scary to me as
M2 Pro macOS 15.3.1 (24D70) 😬 |
Thanks for sharing this unpleasant experience and I am sorry you had to experience this - it is very, very scary :/. Even though it's still unclear what is causing this, if you wanted to launch GitButler just one more time to type |
Update: I encountered an issue that caused me to love a lot more files by committing to the @krlvi helped me out to get my files back and let me know that the v3 rollout and the following weeks of stabilizing the app will make this sort of issue a thing of the past. Thanks again! To be safe, I personally will use GitButler again in a month or so. I'm confident I'll come back and not experience such an issue again :) |
Version
0.13.16 (20241121.082346)
Operating System
macOS
Distribution Method
dmg (Apple Silicon)
Describe the issue
Whenever I start up gitbutler, it want always want to delete 2 specific files I do not know why it wants to delete these files but its just 2 icon files.
How to reproduce
Screen.Recording.2024-11-22.at.13.26.48.mov
Expected behavior
The file should have been deleted in the first place
Relevant log output
No response
The text was updated successfully, but these errors were encountered: