Explore by product
GitHub
Get startedGitHubEnterprise administratorsBilling and paymentsOrganizationsCode securityGitHub IssuesGitHub ActionsGitHub CodespacesGitHub PackagesDevelopersREST APIGraphQL APIGitHub InsightsGitHub DiscussionsGitHub SponsorsBuilding communitiesGitHub PagesEducationGitHub DesktopGitHub CLIAtomElectronCodeQL
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 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.
Help us make these docs great!
All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.
Make a contribution