Explore by product
GitHub
Get startedGitHubEnterprise administratorsBilling and paymentsOrganizationsCode securityGitHub IssuesGitHub ActionsGitHub CodespacesGitHub PackagesDevelopersREST APIGraphQL APIGitHub InsightsGitHub DiscussionsGitHub SponsorsBuilding communitiesGitHub PagesEducationGitHub DesktopGitHub CLIAtomElectronCodeQL
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 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 Server 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.