Creating files on GitHub
Starting today, you can create new files directly on GitHub in any of your repositories. You’ll now see a “New File” icon next to the breadcrumb whenever you’re viewing a…
Starting today, you can create new files directly on GitHub in any of your repositories. You’ll now see a “New File” icon next to the breadcrumb whenever you’re viewing a folder’s tree listing:
Clicking this icon opens a new file editor right in your browser:
If you try to create a new file in a repository that you don’t have access to, we will even fork the project for you and help you send a pull request to the original repository with your new file.
This means you can now easily create README
, LICENSE
, and .gitignore
files, or add other helpful documentation such as contributing guidelines without leaving the website—just use the links provided!
For .gitignore
files, you can also select from our list of common templates to use as a starting point for your file:
ProTip™: You can pre-fill the filename field using just the URL. Typing ?filename=yournewfile.txt
at the end of the URL will pre-fill the filename field with the name yournewfile.txt
.
Enjoy!
Written by
Related posts
![GitHub Copilot agent mode](https://github.blog/wp-content/uploads/2025/02/Agent-Sunrise-1.png?resize=400%2C212)
GitHub Copilot: The agent awakens
Introducing agent mode for GitHub Copilot in VS Code, announcing the general availability of Copilot Edits, and providing a first look at our SWE agent.
![](https://github.blog/wp-content/uploads/2025/01/innovation_graph_1.png?resize=400%2C212)
That’s a wrap: GitHub Innovation Graph in 2024
Discover the latest trends and insights on public software development activity on GitHub with the release of Q2 & Q3 2024 data for the Innovation Graph.
![](https://github.blog/wp-content/uploads/2024/07/Screenshot-2024-07-23-at-8.46.23 AM.png?resize=400%2C212)
Seven years of open source: A more secure and diverse ecosystem
Explore insights into open source community growth, innovation, and inclusivity with an updated survey dataset.