You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitHub Desktop names repository incorrectly and opens wrong repository #3855
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
GitHub Desktop names repository incorrectly and opens wrong repository. I have 2 repos on Github Enterprise, one named VertigoRealityVive and the other VertigoReality. If I clone both to my PC they are both named VertigoRealityVive. Uninstalling GitHub Desktop and removing localdata then had both repos receive the name VertigoReality.
Version
1.0.12
GitHub Desktop version: [1.0.12]
OS version: [Windows 10]
Steps to Reproduce
Clone repo VertigoRealityVive
Clone repo VertigoReality
both repose then have same name in GitHubDesktop - though it only happens with these 2 repos and initially VertigoRealityVive was named VertigoReality, but I changed it on GitHub Enterprise settings.
Expected behavior:
I expect each repo to be named what they are on GitHub Enterprise, or at least give me a way to change it.
Actual behavior:
Both are named the same. They do commit to correct repo, but selecting "View on GitHub" they go to the same repo - so one is correct and one is not.
I've sent you an email with the same instructions in case you have data you want to remain private.
I need to know the state of your database, I have a hunch on what the issue could be, but I’d like confirmation.
To get to your database:
Select View -> Toggle Developer Tools in the application menu
Select the Application tab in Chrome Dev Tools _(the tab may be located in a popup menu identified the >> icon)
Expand the IndexDB tree node on the left-most column
Expand the gitHubRepositories object store
Select the item labeled cloneURL
Expand the value object (right-most column) for the two repositories you are having issues with
Take a screenshot
Additionally, select the item labeled name from the gitHubRepositories object store and take a screenshot of that as well. If you have multiple keys with the same name, expand all of their value objects.
I followed the above step and sent the information, but after the weekend, I reinstalled, deleted local repos and cloned again from online repos and it appeared to fix my issue. Thanks.
I'm having the same issue - my two repos pax and pax_old both keep showing up as pax_old. I've tried all sorts of combinations of reinstalling, deleting all the databases in the Desktop app via dev tools, re-cloning from Github both through desktop and the console, but no luck. Is there any fix for this by now? It almost seems like the reference to pax_old is buried somewhere in the repo itself because I deleted all the Desktop databases and the issue persisted after re-adding the repo (no matter if I re-clone, or add a local copy).
Reacted by Ines Gomes, Ilia Chirkunov and Sajad Dehshiri
Still happening. If you rename a repo on Github (myrepo -> myrepo-old), then make a new myrepo locally and push, it is renamed in the app to myrepo-old.
I've cleared the entries in the app DB, recloned from github.com (which shows the names correctly), and even deleted .git in the new repo and re-inited. Nothing works.
Seems like a regression, since I've done this many times before ("hey, I should use [new framework] for [never-ending side project]") and not had this issue.
Reacted by Jonas, Mohammad Hossein Moayeri and Maddy
Be sure to check the remote origin is correct. I had to manually change mine to match the "new" repo name. Go to Repository menu > Repository Settings > Remote
From https://github.com/tierninho/Repo123 ---> https://github.com/tierninho/Repo123-old
At this point I am going to reopen this issue and label as a bug until a fix arrives.
Side note: this issue feels familiar and there may be another open issue on it
Reacted by cypress evelyn masso, Sarah Schöttler, dmarkham95, Jonas and Ilia Chirkunov
I have the same issue using the latest version (2.6.3) on MacOS.
Closing the application and deleting the cache directory solves the issue (~/Library/Application\ Support/GitHub\ Desktop/Cache).
I had the same issue this week. Following @jnsmelinda advice solved it for me. Thank you!
I'm on 2.9.0 on Windows 10 and just had the same problem, closing the application and going into appdata\Roaming\GIthub Desktop\Cache and deleting all the contents ended up fixing it.
I changed the repo name to "beverage-shop-nextjs" in github.com, and removed the "beverage-shop" repo from github desktop (because the name didn't get changed here automatically)
I added the local directory to github desktop by "add local repository" and got the "beverage-shop-nextjs" repo name (which is correct)
I created a new repo named "beverage-shop" in github.com and then cloned the repo to my local folder by "git clone <...>" command
then I added the repo (the local directory) to github desktop by "add local repository"
then I got a repo named "beverage-shop-nextjs" (which is not correct and should be "beverage-shop"),
so now I have two repos named "beverage-shop-nextjs", the repo works fine (I mean git operation) and contains the right files, but the same name they have makes me confused.
this equal name problem is only in github desktop, everything in github.com is ok
Version 3.4.15 (macOS), still happening. Removing ~/Library/Application Support/GitHub Desktop eventually fixes the issue but keep in mind the app will start in clean state, you'll need to reconfigure and add all your repositories again.
Issue still present on version 3.5.3 (Windows 11). The easiest fix is to remove the cache, and then to select the repository in Github Desktop. On Windows Its located in %appdata%\GitHub Desktop\Cache.
Version 3.4.15 (macOS), still happening. Removing ~/Library/Application Support/GitHub Desktop eventually fixes the issue but keep in mind the app will start in clean state, you'll need to reconfigure and add all your repositories again.
I don't think this is necessary, just removing the cache worked fine for me.
Just noticed this is marked as completed. I don't think it should be. The issue still requires either deleting cache or cloning the repository again, which is not obvious to users encountering the bug.
This is still an issue after more than 8 years (on version 3.6.11 Windows 11), so I'm not sure why this is marked as closed. Just removing the cache wasn't enough for me, I had to reclone the repo.
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
Activity
iAmWillShepherd commentedon Jan 26, 2018
Thanks for taking the time to open an issue! 🙇
I've sent you an email with the same instructions in case you have data you want to remain private.
I need to know the state of your database, I have a hunch on what the issue could be, but I’d like confirmation.
To get to your database:
View -> Toggle Developer Toolsin the application menuApplicationtab in Chrome Dev Tools _(the tab may be located in a popup menu identified the >> icon)IndexDBtree node on the left-most columngitHubRepositoriesobject storecloneURLAdditionally, select the item labeled
namefrom thegitHubRepositoriesobject store and take a screenshot of that as well. If you have multiple keys with the same name, expand all of their value objects.jkafkaris commentedon Jan 31, 2018
I followed the above step and sent the information, but after the weekend, I reinstalled, deleted local repos and cloned again from online repos and it appeared to fix my issue. Thanks.
sarah37 commentedon Apr 20, 2019
I'm having the same issue - my two repos pax and pax_old both keep showing up as pax_old. I've tried all sorts of combinations of reinstalling, deleting all the databases in the Desktop app via dev tools, re-cloning from Github both through desktop and the console, but no luck. Is there any fix for this by now? It almost seems like the reference to pax_old is buried somewhere in the repo itself because I deleted all the Desktop databases and the issue persisted after re-adding the repo (no matter if I re-clone, or add a local copy).
notthatnathan commentedon Jul 18, 2019
Still happening. If you rename a repo on Github (
myrepo->myrepo-old), then make a newmyrepolocally and push, it is renamed in the app tomyrepo-old.I've cleared the entries in the app DB, recloned from github.com (which shows the names correctly), and even deleted
.gitin the new repo and re-inited. Nothing works.Seems like a regression, since I've done this many times before ("hey, I should use [new framework] for [never-ending side project]") and not had this issue.
tierninho commentedon Jul 18, 2019
@notthatnathan and @sarah37 I tested your scenario and got the same results.
Be sure to check the remote origin is correct. I had to manually change mine to match the "new" repo name. Go to Repository menu > Repository Settings > Remote
From
https://github.com/tierninho/Repo123--->https://github.com/tierninho/Repo123-oldAt this point I am going to reopen this issue and label as a bug until a fix arrives.
Side note: this issue feels familiar and there may be another open issue on it
39 remaining items
jcamato commentedon Jul 30, 2021
I had the same issue this week. Following @jnsmelinda advice solved it for me. Thank you!
dannyjim-ml commentedon Aug 8, 2021
I'm on 2.9.0 on Windows 10 and just had the same problem, closing the application and going into appdata\Roaming\GIthub Desktop\Cache and deleting all the contents ended up fixing it.
trevyn commentedon Aug 8, 2021
@steveward @tidy-dev Looks like this needs to be reopened again. :)
current-tech-industry commentedon Jul 4, 2022
hi, i had a repo name "beverage-shop", then
so now I have two repos named "beverage-shop-nextjs", the repo works fine (I mean git operation) and contains the right files, but the same name they have makes me confused.
this equal name problem is only in github desktop, everything in github.com is ok
Suvraneel commentedon Jul 31, 2022
How has it been 3years without a fix
Issue replication
See all comments above this
Config
Win11 x64
Not fixed on Reinstalls etc
Also, FYI it works perfectly with Git Bash but not with Github Desktop
Pietro228 commentedon Feb 13, 2023
2023 and still not fixed :)) Please reopen this issue, it's NOT fixed
augiwan commentedon Apr 13, 2023
The issue still exists, please re-open.
noamvaza commentedon Jul 11, 2023
WIn V3.2.6 reproduced
ShetlandJ commentedon Aug 28, 2023
Removing the
Cachefolder does not solve the issue. Issue reproduced on OSX, Venturaiyzyi commentedon May 25, 2024
Useful!
crontab commentedon Feb 2, 2025
Version 3.4.15 (macOS), still happening. Removing
~/Library/Application Support/GitHub Desktopeventually fixes the issue but keep in mind the app will start in clean state, you'll need to reconfigure and add all your repositories again.MaddyMurder commentedon Oct 25, 2025
Issue still present on version 3.5.3 (Windows 11). The easiest fix is to remove the cache, and then to select the repository in Github Desktop. On Windows Its located in
%appdata%\GitHub Desktop\Cache.I don't think this is necessary, just removing the cache worked fine for me.
MaddyMurder commentedon Oct 25, 2025
Just noticed this is marked as completed. I don't think it should be. The issue still requires either deleting cache or cloning the repository again, which is not obvious to users encountering the bug.
CedX commentedon Feb 4, 2026
+1 I also encountered this problem today. t would be handy to have some way to clear the cache from the UI.
JamieSchooling commentedon Nov 19, 2026
This is still an issue after more than 8 years (on version 3.6.11 Windows 11), so I'm not sure why this is marked as closed. Just removing the cache wasn't enough for me, I had to reclone the repo.