Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 down vote accepted

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

Visit http://stackoverflow.com/questions/2114111/where-does-git-config-global-get-written-to for more info about where config files are stored.

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

[gui]
     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

Your Answer

 
discard

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.