Explore by product
GitHub
This version of GitHub Enterprise was discontinued on 2021-06-09. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.
Article version: Enterprise Server 2.21
Article version: Enterprise Server 2.21
Managing files on GitHub
On GitHub Enterprise Server, you can create, edit, move, and delete files in a repository.
Creating new files→
You can create new files directly on GitHub Enterprise Server 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 Enterprise Server 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 Enterprise Server 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.
Deleting files in a repository→
You can delete an individual file in your repository on GitHub Enterprise Server.
Renaming a file→
You can rename any file in your repositories directly in GitHub Enterprise Server. 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 your GitHub Enterprise Server instance, you can press the "y" key to update the URL to a permalink to the exact version of the file you see.