Clear Recent Repos in Git Gui

8,077

Solution 1

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

Visit https://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.

Solution 2

Open Git Bash and try:

git config --global --unset-all gui.recentrepo
Share:
8,077

Related videos on Youtube

Ryan Gates
Author by

Ryan Gates

I am a software developer working to create software that people will enjoy using. Fort Lauderdale LocalWiki Code for Fort Lauderdale Github Twitter LinkedIn

Updated on September 18, 2022

Comments

  • Ryan Gates
    Ryan Gates over 1 year

    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:

    Recent repositories

    Here is my Git/Git Gui version info:

    git-gui version 0.17.GITGUI. git-version 1.8.1.msysgit.1

  • Ryan Gates
    Ryan Gates almost 11 years
    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
    Ryan Gates almost 11 years
    Can you add code for what the config file might look like to help others?
  • Ryan Gates
    Ryan Gates almost 11 years
    In my case, the file was under %HOMEDRIVE%%HOMEPATH%, which is where the shortcut's start in parameter was set to.
  • madlynx
    madlynx almost 11 years
    edited my answer
  • Ibrahim Disouki
    Ibrahim Disouki over 8 years
    How i can clear clear recent repos on Linux Ubuntu 14.04?