Search code examples
gitgithubgithub-for-windows

Changing local directory name to match github repository name change


I have a github repository checked out on my personal computer using Github Desktop for Windows. This has made a folder of the form C:/Some/Path/Github/Repo_Name which contains the checked out repository. However, the online repository has changed to a new name, New_Repo_Name. Within Github Desktop, the name has changed to match, but my folder is still the old Repo_Name. How can I change this folder name to match the new repository name? I'm afraid to simply change the folder name as it may break certain links. Is there a formal way to do this or does changing the folder name work?


Solution

  • I'm afraid to simply change the folder name as it may break certain links.

    It should not break any link.
    For gitHub Desktop, you might have to re-import the folder, but other than that, the link between the local repo (in its new folder) and the associated remote GitHub repo will be unchanged.