Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2.0 KiB
title, intro, redirect_from, versions
| title | intro | redirect_from | versions | |||||
|---|---|---|---|---|---|---|---|---|
| Creating new files | You can create new files directly on {{ site.data.variables.product.product_name }} in any repository you have write access to. |
|
|
When creating a file on {{ site.data.variables.product.product_name }}, consider the following:
- If you try to create a new file in a repository that you don’t have access to, we will fork the project to your user account and help you send a pull request to the original repository after you commit your change.
- File names created via the web interface can only contain alphanumeric characters and hyphens (
-). To use other characters, create and commit the files locally, then push them to the repository on {{ site.data.variables.product.product_name }}.
{{ site.data.reusables.repositories.sensitive-info-warning }}
{{ site.data.reusables.repositories.navigate-to-repo }}
2. In your repository, browse to the folder where you want to create a file.
{{ site.data.reusables.files.add-file }}
4. In the file name field, type the name and extension for the file. To create subdirectories, type the / directory separator.
5. On the Edit new file tab, add content to the file.
6. To review the new content, click Preview.
{{ site.data.reusables.files.write_commit_message }}
{{ site.data.reusables.files.choose-commit-email }}
{{ site.data.reusables.files.choose_commit_branch }}
{{ site.data.reusables.files.propose_new_file }}