I'm in a github repository of mine, I'm looking to make a new folder inside my project.…
- User
I'm in a github repository of mine, I'm looking to make a new folder inside my project. How the hell do I do that, I add or upload files, I can't for the life of me see where to make a directory?
Assistant
GitHub's web interface doesn't have a direct "create folder" button, which trips up a lot of people. Here's how to do it:
When you're in your repository, click "Add file" → "Create new file". In the filename field, type your folder name followed by a forward slash, like
my-new-folder/. GitHub will automatically recognize this as a folder and show it as such in the interface.You'll need to add at least one file inside the folder to actually create it - you can't have empty folders in Git. So after typing
my-new-folder/, continue typing a filename likeREADME.mdor whatever file you want to put in there.Alternatively, if you're working locally with Git, you can create the folder on your computer, add files to it, then commit and push to GitHub. But the web interface method above is the quickest if you're just working through the browser.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.