Unity
Unity copied to clipboard
Listing Changes Files Refresh Issue
I cannot for the life of me find a fix for the "Listing change files" refresh issue for the GitHub panel in Unity. How do I fix this refresh problem, I cannot submit my changes to my repos because it keeps deselecting my changes...
For context; this is what I see refreshing every second or so. It deselects my changes which prevents me from submitting them to the repo.

Thanks for getting back to me!
It occurs automatically on it's own. Once I open Unity and submit a commit it will continue to refresh the listed changes (even though there are none).
As it's listing the changed files, it will deselect any of the changes from the list preventing me from being able to commit further changes.
I hope we can figure out a fix, thank you for the help! :)
Sorry that's it's so messed up for you! There's two problems here, it seems: 1) it should not be constantly refreshing and 2) the UI should not reset your selection
I'll work on fixing 2, but I'm not surr why 1 is happening. Could you enable trace logging in the settings tab and then upload the log after some refreshes so I can take a look? The path to the log shows up in the console the first time you start Unity with the plugin running.
Absolutely! I'll see if I can get that for log you this afternoon when I get home.
Thanks for the assistance!
Hi again, sorry about the delay had a few busy days. I believe this is the correct log file.
Thanks again!
Yeah, something is definitely wonky with your project, it keeps running git status over and over again. Do you have something in your project that might be changing something in the filesystem once a second?
To be honest I don't know, this is my first time using a GIT system before and I was hopin' this panel would make it easier to understand :P I'm super fresh to the whole scripting/programming thing!
I can't imagine that there would be anything causing it to refresh all the time. It seems that if I can press the "refresh" button at just the right time I am able to stop the panel from automatically doing it.
Is there anything else that I would be able to grab for you that might give you a clearer idea?
Thanks again!
@MaximumHussey Sorry for not getting back to you earlier, still trying to figure out what's wrong. We're working on a fix for the selection, so at least even if it goes nuts refreshing it shouldn't affect your work. Hopefully I can get a build for you to test this week. Thank you for the patience!
I just experienced this issue. Here is the log and I will try to provide any info upon request!
I have the same issue once in a while... it is very annoying. To get out of that state, I usually close the editor and commit using Git Desktop... I hope it gets fixed soon. I have a feeling it is related to locks as I often trigger this loop state when working with locks.
I have the same issue also. What I do is I go to Window->Github CLI and as long as you are in the opened console/terminal it works fine. The UI Window does not work for me though. I hope it gets fixed soon!
Do you have any other git repo folders inside your project that aren't proper submodules?
Making them proper submodules or removing the .git folder inside them stopped the issue for me.
I have had this issue on MacOS 10.14.5 Running GitHubForUnity:'v1.4.0' Unity:'v2019.1.8f1'. To reiterate the issue, Checked items in the UI become unchecked by the refresh.
The only things of interest in the trace log are:
190628-11:41:19.851 TRACE [ 1] <GitUserCache> needsInvalidation isInitialized:False timedOut:False 190628-11:41:19.853 TRACE [81] <ProcessWrapper> Running '/usr/local/bin/git config --get --global user.name' 190628-11:41:19.995 TRACE [85] <ProcessWrapper> Running '/usr/local/bin/git config --get --global user.email' 190628-11:41:20.063 TRACE [73] <ProcessWrapper> Running '/usr/local/bin/git -c i18n.logoutputencoding=utf8 -c core.quotepath=false --no-optional-locks status -b -u --porcelain'
It repeats the GitStatusCache line occasionally and ProcessWrapper line quite a bit.
- I made sure that the repo was in sync and the "listing file changes" progress bar kept up its antics.
- I tried a completely blank Unity project and initialized a repo from the plugin and it did not have the issue.
- I returned to the my existing project and synced up the gitignore and gitattributes files. issue remained.
Stuck with the same issue.
Any one have a solution?
Unfortunately I abandoned it after a number of attempts
Same issue. Enabled trace logging and found a piece of logs that have been repeated
<ProcessWrapper> Running '/usr/bin/git -c i18n.logoutputencoding=utf8 -c core.quotepath=false --no-optional-locks status -b -u --porcelain'
Wondering how to fix it.
I have also this issue.
Editor->Project Settings->Editor: Version Control/Mode = Visible Meta Files fixed it for me.
Same issue, sarrowsmith's solution fixed the problem for me, thanks.
sarrowsmith's solution worked for me too! Thanks!
wow that worked for me too. Anyone here trying to be foolish and have both collab and git repo activated?
This solution also worked for me!
github is useless, what a lamer programmer
Changing the visibility mode of meta files doesn't seems to work for me. I am using Unity 2021.2.0b11,which is a beta version. The refresh bug is reproduced everytime I create a project and initialize Git. It might be due to a change in unity.
Changing the visibility mode of metafiles doesn't seem to work for me. I am using Unity 2021.2.0b11, which is a beta version. The refresh bug is reproduced every time I create a project and initialize Git. It might be due to a change in unity.
Any luck on fixing this issue?
Today I upgraded to the new 2021.2 "Tech Stream", and the "Listing changed files" is happening now with my project. The "Visible Meta Files" fix above doesn't work anymore. Any solution for this 3 years old issue?
Today I upgraded to the new 2021.2 "Tech Stream", and the "Listing changed files" is happening now with my project. The "Visible Meta Files" fix above doesn't work anymore. Any solution for this 3 years old issue?
Have same question. Mode already "Visible Meta Files".
So changing the Mode did not do anything for me, it was already in the right mode, but i have this file lying around in my root directory. And renaming the gitignore file solved the issue for me. But obviously i need the file.
Edit: False Alarm, it just takes a lot of time for it to refresh, but it still does it.
my temporary solution is to use github-desktop app
my temporary solution is to use github-desktop app
Yes. When trying to fix this, I did a logout and couldn't login again... This is ANOTHER posted issue without a solution. I've already dropped GitHub for Unity and I'm using GitHub desktop or Visual Studio Code source control. The last release of this package is from June 2019. It seems it's discontinued and without support.
Got hit by this issue today w/ unity 2021.2.7f1 on Windows 10. Same thing it keeps running git status every 800 ms and de-selecting the files to commit. Downloaded github-for-unity today and this is a brand new unity project. The "visible meta files" is already set and switching it does nothing.