{"meta":{"title":"Managing files","intro":"You can create, edit, move, and delete files in a repository, directly on GitHub or on the command line.","product":"Repositories","breadcrumbs":[{"href":"/en/repositories","title":"Repositories"},{"href":"/en/repositories/working-with-files","title":"Work with files"},{"href":"/en/repositories/working-with-files/managing-files","title":"Managing files"}],"documentType":"subcategory"},"body":"# Managing files\n\nYou can create, edit, move, and delete files in a repository, directly on GitHub or on the command line.\n\n## Links\n\n* [Creating new files](/en/repositories/working-with-files/managing-files/creating-new-files)\n\n  You can create new files directly on GitHub in any repository you have write access to.\n\n* [Adding a file to a repository](/en/repositories/working-with-files/managing-files/adding-a-file-to-a-repository)\n\n  You can upload and commit an existing file to a repository on GitHub or by using the command line.\n\n* [Moving a file to a new location](/en/repositories/working-with-files/managing-files/moving-a-file-to-a-new-location)\n\n  You can move a file to a different directory on GitHub or by using the command line.\n\n* [Editing files](/en/repositories/working-with-files/managing-files/editing-files)\n\n  You can edit files directly on GitHub in any of your repositories using the file editor.\n\n* [Renaming a file](/en/repositories/working-with-files/managing-files/renaming-a-file)\n\n  You can rename any file in your repository directly in GitHub or by using the command line.\n\n* [Deleting files in a repository](/en/repositories/working-with-files/managing-files/deleting-files-in-a-repository)\n\n  You can delete an individual file or an entire directory in your repository on GitHub.\n\n* [Customizing how changed files appear on GitHub](/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github)\n\n  To keep certain files from displaying in diffs by default, or counting toward the repository language, you can mark them with the linguist-generated attribute in a .gitattributes file."}