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
Announcing GitHub Secure Open Source Fund: Help secure the open source ecosystem for everyone
Applications for the new GitHub Secure Open Source Fund are now open! Applications will be reviewed on a rolling basis until they close on January 7 at 11:59 pm PT. Programming and funding will begin in early 2025.
Software is a team sport: Building the future of software development together
Microsoft and GitHub are committed to empowering developers around the world to innovate, collaborate, and create solutions that’ll shape the next generation of technology.
Does GitHub Copilot improve code quality? Here’s what the data says
Findings in our latest study show that the quality of code written with GitHub Copilot is significantly more functional, readable, reliable, maintainable, and concise.