How to rename a directory/folder on GitHub website?

committedandroider picture committedandroider · Aug 6, 2015 · Viewed 113.5k times · Source

I was able to find a way on GitHub Website to rename a single file and did so with success.

I was also able to find a way to rename a whole repository and did that with success.

Does anyone know how to do this to a single directory without using command line? For reference, I am trying to change a directory named InterviewTesting (that contains src files, etc) to something else. I tried doing it the single file way. enter image description here
But this didn't allow me to change the name of the directory (InterviewTesting), only the actual file name.

Answer

Jonatas Walker picture Jonatas Walker · Sep 17, 2015

Actually, there is a way to rename a folder using web interface.

1) Type a folder name followed by slash to go down into a subfolder. 2) Type dot dot, then slash, to jump upwards one directory. 3) Use the backspace key to edit the parent directory's name.

See https://github.com/blog/1436-moving-and-renaming-files-on-github