
Adding a file to a repository - GitHub Docs
You can upload and commit an existing file to a repository on GitHub or by using the command line.
Uploading a project to GitHub
This tutorial will show you how to upload a group of files to a GitHub repository. Uploading your files to a GitHub repository lets you: Apply version control when you make edits to the files, so your project's history is protected and manageable.
Attaching files - GitHub Docs
To attach a file to an issue or pull request conversation, drag and drop it into the comment box. Alternatively, you can click in the formatting bar above the comment box to browse, select, and add a file from your computer.
Creating new files - GitHub Docs
On GitHub, navigate to the main page of the repository. In your repository, browse to the folder where you want to create a file. Above the list of files, select the Add file dropdown menu, then click Create new file. Alternatively, you can click in the file tree view on the left.
Adding locally hosted code to GitHub
If you have source code stored locally on your computer that is tracked by Git or not tracked by any version control system (VCS), you can add the code to GitHub by typing commands in a terminal. You can do this by typing Git commands directly.
Adding a repository from your local computer to GitHub Desktop
You can add a Git repository from your local computer to GitHub Desktop by dragging the folder onto the GitHub Desktop window. If you drag multiple Git folders into GitHub Desktop at the same time, each folder will be added as a separate Git repository.
Editing files - GitHub Docs
GitHub's file editor uses CodeMirror. In your repository, browse to the file you want to edit. In the upper right corner of the file view, click to open the file editor.
About large files on GitHub
GitHub limits the size of files you can track in regular Git repositories. Learn how to track or remove files that are beyond the limit.
Managing files - GitHub Docs
You can upload and commit an existing file to a repository on GitHub or by using the command line.
Getting permanent links to files - GitHub Docs
Press Y to permalink to a file in a specific commit. For a permanent link to the specific version of a file that you see, instead of using a branch name in the URL (i.e. the main part in the example above), put a commit ID. This will permanently link to the exact version of …