Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
46.4k views
in GitHub by 16 16 22

I can create a new folder on the GitHub web site, and also I can create a new file and rename the newly created file, but I can't find any option to edit the folder name, is there any simple way to rename the GitHub folder?

how to rename folder in GitHub

By the way, I have checked the suggested solutions at this post in StackOverflow, but I when adding a double dot I can't get it worked at my end!


1 Answer

1 like 0 dislike
by 159 200 383
selected by
 
Best answer

How to rename a folder in GitHub?

To change the name of a folder or subfolder in a specific directory in GitHub, you should follow the below steps:

  1. Open the GitHub directory where the folder is located.
  2. Click on any file inside this folder to open it.
  3. Click on "Edit File".

edit GitHub folder name
4. Go to the file name, then add the cursor at the beginning of the file name then click BackSpace from the keyboard.

rename GitHub folder name
5. The BackSpace allows you to move back to the main folder that holds this file.
6. Rename the GitGub folder as you prefer, then add the curser at the end of the new folder name then click Slash / to move forward to the file name again.

change GitHub folder name

The below demonstration would help you to know how to rename a folder and subfolder in a GitHub directory without using the command line.

rename folder in github

Note: In case, you have multiple folders and you need to rename the first folder, so you should repeat step number 4/5 until reaching the desired folder, then at the end of each folder name add Slash / as mentioned in step 6.


See Also

If you don’t ask, the answer is always NO!
...