Skip to content

GitHub Desktop names repository incorrectly and opens wrong repository #3855

Closed

Description

@jkafkaris

Description

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

  1. Clone repo VertigoRealityVive
  2. Clone repo VertigoReality
  3. 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.

Log attached

2018-01-25.desktop.production.log

Activity

  1. iAmWillShepherd commented on Jan 26, 2018

    @iAmWillShepherd
    Contributor

    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:

    1. Select View -> Toggle Developer Tools in the application menu
    2. Select the Application tab in Chrome Dev Tools _(the tab may be located in a popup menu identified the >> icon)
    3. Expand the IndexDB tree node on the left-most column
    4. Expand the gitHubRepositories object store
    5. Select the item labeled cloneURL
    6. Expand the value object (right-most column) for the two repositories you are having issues with
    7. 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.

    gitHubRepositories.cloneURL
    2018-01-26_11-04-23 181

  2. added
    more-info-needed
    on Jan 26, 2018
  3. deleted a comment from on Jan 26, 2018
  4. jkafkaris commented on Jan 31, 2018

    @jkafkaris
    Author

    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.

  5. locked as resolved and limited conversation to collaborators on Jul 18, 2018
  6. unlocked this conversation on Sep 27, 2018
  7. sarah37 commented on Apr 20, 2019

    @sarah37

    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).

  8. notthatnathan commented on Jul 18, 2019

    @notthatnathan

    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.

  9. tierninho commented on Jul 18, 2019

    @tierninho
    Contributor

    @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-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

  10. added
    bug
    and removed
    more-info-needed
    on Jul 18, 2019
  11. 39 remaining items

  12. jcamato commented on Jul 30, 2021

    @jcamato

    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!

  13. dannyjim-ml commented on Aug 8, 2021

    @dannyjim-ml

    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.

  14. trevyn commented on Aug 8, 2021

    @trevyn

    @steveward @tidy-dev Looks like this needs to be reopened again. :)

  15. current-tech-industry commented on Jul 4, 2022

    @current-tech-industry

    hi, i had a repo name "beverage-shop", then

    1. 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)
    2. I added the local directory to github desktop by "add local repository" and got the "beverage-shop-nextjs" repo name (which is correct)
    3. I created a new repo named "beverage-shop" in github.com and then cloned the repo to my local folder by "git clone <...>" command
    4. then I added the repo (the local directory) to github desktop by "add local repository"
    5. 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

  16. Suvraneel commented on Jul 31, 2022

    @Suvraneel

    How has it been 3years without a fix :octocat:

    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

  17. Pietro228 commented on Feb 13, 2023

    @Pietro228

    2023 and still not fixed :)) Please reopen this issue, it's NOT fixed

  18. augiwan commented on Apr 13, 2023

    @augiwan

    The issue still exists, please re-open.

  19. noamvaza commented on Jul 11, 2023

    @noamvaza

    WIn V3.2.6 reproduced

    removing cache solves the problem. "rm -r ~"/Library/Application Support/GitHub Desktop/Cache"

  20. ShetlandJ commented on Aug 28, 2023

    @ShetlandJ

    Removing the Cache folder does not solve the issue. Issue reproduced on OSX, Ventura

  21. iyzyi commented on May 25, 2024

    @iyzyi

    我在 Windows 2.9.0 上使用 10 并且遇到了同样的问题,关闭应用程序并进入 appdata\Roaming\GIthub Desktop\Cache 并删除所有内容最终修复了它。

    Useful!

  22. crontab commented on Feb 2, 2025

    @crontab

    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.

  23. MaddyMurder commented on Oct 25, 2025

    @MaddyMurder

    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.

  24. MaddyMurder commented on Oct 25, 2025

    @MaddyMurder

    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.

  25. CedX commented on Feb 4, 2026

    @CedX

    +1 I also encountered this problem today. t would be handy to have some way to clear the cache from the UI.

  26. JamieSchooling commented on Nov 19, 2026

    @JamieSchooling

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpriority-2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions