Remove repository from GitKraken overview

I accidentally cloned the same repository twice in GitKraken (don't ask me how, I am still learning in Git), and now it shows up twice in the repo overview. It both point to the same folder, so I cannot just delete the repo, as I would have lost the other one too. How can I remove one from the overview?

I can imagine this can also be useful for removing old repositories in GitKraken, but still have the files on your local computer.

Answers


In fact you can easily go to your %APPDATA% folder or Library folder (for MacOS) and find the .gitkraken folder. There there is a profile folder and then your profile guid folder. The directory should look something like this:

%APPDATA%\.gitkraken\profiles\<guid> or Users\<user>\.gitkraken\profiles\<guid>

Inside this folder you can find a localRepoCache file. Remove the entries that are duplicated, then go back to Gitkraken and add them back as needed.


Careful, this method also deletes the repo from the hard disk!

Since version 3, you can also remove them inside the program.

In the menu, where you can Open/Clone/Init repos, choose the open option.

Under "Recently Opened" you see your repos. Right-click on the relevant entry et voilĂ ...


You can try and:

  • move you actual dayfinder folder (rename it)
  • delete the extra entry in GitKraken
  • rename the folder back to its original name.

The OP Mathias711 adds in the comments:

Even better: When I renamed it ("dayfinder2") it automatically updated his overview, and added the 2 and also removed the extra entry. Removing the 2 yields the expected output.


On Ubuntu, you can edit the localRepoCache by:

cd ~/.gitkraken/profiles

then ls to get a list of the content of the directory. Go inside the directory and you'll see a file/s. In my case it's:

cd d6e5a8ca26e14325a4275fc33b17e16f

Edit the localRepoCache file.

sudo vim localRepoCache

You'll be getting something like this:

{
 [
    "/home/user/your-project-dir/repo-1/.git",
    "/home/user/your-project-dir/repo-2/.git",
    "/home/user/your-project-dir/repo-3/.git",
    "/home/user/your-project-dir/repo-4/.git",
    "/home/user/your-project-dir/repo-5/.git" 
 ]
}

Just delete the repos you want to be removed from the GitKraken overview screen. Restart GitKraken and you're good.


All the other answers are very legit, but the easiest way I found is to simply rename your project folder, restart gitkraken, attempt to open the removed repository, and it will automatically detect its removed.


Need Your Help

What is the opposite of GROUP_CONCAT in MySQL?

mysql csv format pivot group-concat

I seem to come against this problem a lot, where I have data that's formatted like this:

how to select max of mixed string/int column?

mysql select max mixed

Lets say that I have a table which contains a column for invoice number, the data type is VARCHAR with mixed string/int values like: