Git Gui does not display more than 5000 files


If you try to use git gui on a folder that has more than 5000 files, you might notice that the git gui client only displays the first 5000 files and you will also receive the following message

Display limit (gui.maxfilesdisplayed = 5000) reached, not showing all xxxxx files

The limit is coming from the following line in the  git gui source

5000 is just the default limit if gui.maxfilesdisplayed setting is not set.  Therefore, you can increase the limit by updating the git configuration. For example to increase it to 10000, add the following to the git configuration.

maxfilesdisplayed = 10000

You can add the configuration in any of the git config files like ~/.gitconfig. On windows, you can also set it in $PROGRAMDATA/Git/config, this is a (Windows-only) System-wide configuration file shared with other Git implementations. Typically $PROGRAMDATA points to C:\ProgramData.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s