Article version: Enterprise Server 2.14

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-07-12. 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.

Managing files using the command line

Using the command line, you can add, rename, and move files in a repository.

Adding a file to a repository using the command line

You can upload an existing file to a GitHub Enterprise repository using the command line.

Renaming a file using the command line

You can use the command line to rename any file in your repository.

Moving a file to a new location using the command line

You can use the command line to move files within a repository by removing the file from the old location and then adding it in the new location.

Ask a human

Can't find what you're looking for?

Contact us