Moving and renaming files on GitHub

Original author: Coby Chapple
  • Transfer
From today, you can move and rename files in repositories, right from the GitHub web interface.

Rename Files


Now when editing a file, you can specify a new name.

image

But let's see what else can be done.

Move files to a new location



You can also move files to a completely new location simply by using the file name field. To navigate down a directory, simply enter the name of the folder and /. You can specify an existing folder, or select a completely new one!

image

There is nothing easier than moving the file up the directory. To do this, place the cursor at the beginning of the file name

  • Enter ../to move up
  • Click backspaceto move up the directory while maintaining your current location to quickly change the location.


Create files with arbitrary position



This functionality is also available when creating files , and this means that you can create files anywhere in your repository, even if the folder does not exist yet!

Enjoy it!

Also popular now: