Explore by product
GitHub.com
Get startedGitHub.comGitHub EnterpriseBilling and paymentsOrganizationsCode securityGitHub ActionsGitHub PackagesDevelopersREST APIGraphQL APIGitHub InsightsIssues and projectsGitHub DiscussionsGitHub CodespacesGitHub SponsorsBuilding communitiesGitHub PagesEducationGitHub DesktopGitHub CLIAtomElectronCodeQL
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.