How do I rename a repository on GitHub?

前端 未结 12 1646
无人及你
无人及你 2020-11-28 17:13

I wanted to rename one of my repositories on GitHub, but I got scared when a big red warning said:

  1. We will not set up any redirects from the o
12条回答
  •  悲&欢浪女
    2020-11-28 18:02

    I rename my own just by simply :

    1. going to github.com on my repository
    2. Open Settings Tab
    3. The first setting you can see is the "Repository Name"
    4. Change the actual one and put the new name you want to give to your repository
    5. Click on Rename

    After this step, GitHub will make sure that, your online repository matches your local folder name. At this step your problem is solved, unless you also want to rename your local folder. Then do it manually and just use the Github client for windows to refind again your repository into your hard drive, and Github will match it again. That's all! Very simple.

提交回复
热议问题