Rider with Git randomly stops working - "fatal: not a git repository (or any of the parent directories)" after working commits.
I have been using Rider (Windows 11) for development with Unreal Engine and have been using Riders Git Interface for version control regularly, (and use Git LFS for large asset files). Normally there hasn't been any issues committing and checking in my code, but on occasion after a large commit from a new asset pack sometimes I find the root project directory where the .git folder is stops being recognized as a git repository. In both Rider and Git Bash it seems the .git folder somehow becomes corrupted? Searching around I found this older IntelliJ thread where someone had a similar problem, and seems like the “refs” directory was removed from the .git folder. I restored my refs folder by copying it from an older copy of the project and it seemed to fix the problem (other than missing the intermediate commit history, but the source files are unchanged).
Just wanted to bring this up in case anyone else is seeing it, I haven't been doing anything strange with the project, just adding & committing via the Rider Git interface just like any other Git Ui. Since the IntelliJ thread linked above seems related I wonder if it is a recurring bug in the IDE, or maybe it is a known issue with Unreal's Git integration.
My Version info:
JetBrains Rider 2025.2.3
Build #RD-252.26830.109, built on October 3, 2025
Runtime version: 21.0.8+1-b1038.72 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
.NET Core v8.0.11 x64 (Server GC)
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 24
Registry:
ide.experimental.ui=true
llm.rules.refresh.interval=10
llm.selector.config.refresh.interval=10
llm.show.ai.promotion.window.on.start=false
Non-Bundled Plugins:
com.intellij.ml.llm (252.26830.157)
Please sign in to leave a comment.
You can find instructions here: https://youtrack.jetbrains.com/articles/SUPPORT-A-1352/How-to-collect-Rider-logs