Are you sure you want to delete this access key?
title | intro | redirect_from | versions |
---|---|---|---|
Adding a file to a repository | You can upload and commit an existing file to a {% data variables.product.product_name %} repository. Drag and drop a file to any directory in the file tree, or upload files from the repository's main page. | [/articles/adding-a-file-to-a-repository] | [{free-pro-team *} {enterprise-server *} {github-ae *}] |
Files that you add to a repository via a browser are limited to {% data variables.large_files.max_github_browser_size %} per file. You can add larger files, up to {% data variables.large_files.max_github_size %} each, via the command line. For more information, see "Adding a file to a repository using the command line."
{% tip %}
Tips:
{% endtip %}
{% data reusables.repositories.navigate-to-repo %}
{% if enterpriseServerVersions contains currentVersion and currentVersion ver_lt "enterprise-server@2.22" %}
2. Under your repository name, click Upload files.
{% else %}
2. Above the list of files, using the Add file drop-down, click Upload files.
{% endif %}
3. Drag and drop the file or folder you'd like to upload to your repository onto the file tree.
{% data reusables.files.write_commit_message %}
{% data reusables.files.choose_commit_branch %}
6. Click Commit changes.
Press p or to see the previous file or, n or to see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?