Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I clear entries in the Git Gui's the recent repositories without deleting those repositories or the .git folders within them?

Here is an example:

enter image description here

Here is my Git/Git Gui version info:

enter image description here

share|improve this question
up vote 6 down vote accepted

The list of recently opened repositories is stored in the config as gui.recentrepos.

Visit for more info about where config files are stored.

For example: in my %HOMEPATH% folder file .gitconfig (msysGit 1.8.1):

     recentrepo = C:/one
     recentrepo = C:/two

And in C:\Program files\Git\etc\gitconfig there are no gui.recentrepo setting, global settings only.

share|improve this answer
I found the .gitconfig file under my C:\Users\username folder, but it had different entries from what I see in the UI. Are there other config files that trump this one? – Ryan Gates Jun 12 '13 at 16:52
Find .gitconfig in msysgit installation directory, such as C:\Program files\msysgit or so – madlynx Jun 12 '13 at 17:01
Can you add code for what the config file might look like to help others? – Ryan Gates Jun 12 '13 at 17:18
In my case, the file was under %HOMEDRIVE%%HOMEPATH%, which is where the shortcut's start in parameter was set to. – Ryan Gates Jun 12 '13 at 17:36
edited my answer – madlynx Jun 12 '13 at 17:58

Open Git Bash and try:

git config --global --unset-all gui.recentrepo
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.