Managing files on GitHub
On GitHub, you can create, edit, move, and delete files in a repository.
Navigating code on GitHub
You can understand the relationships within and across repositories by navigating code directly in GitHub.
Creating new files
You can create new files directly on GitHub in any repository you have write access to.
Adding a file to a repository
You can upload and commit an existing file to a GitHub repository. Drag and drop a file to any directory in the file tree, or upload files from the repository's main page.
Moving a file to a new location
When editing a file, you can choose to move it anywhere within your repository, even if the directory doesn't exist.
Editing files in your repository
You can edit files directly on GitHub in any of your repositories using the file editor.
Editing files in another user's repository
When you edit a file in another user's repository, we'll automatically fork the repository and open a pull request for you.
Tracking changes in a file
You can trace changes to lines in a file and discover how parts of the file evolved over time.
You can delete any file within your repositories on GitHub.
Renaming a file
You can rename any file in your repositories directly in GitHub. Renaming a file also gives you the opportunity to move the file to a new location.
Getting permanent links to files
When viewing a file on GitHub, you can press the "y" key to update the URL to a permalink to the exact version of the file you see.