-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create new file from the web ui when the repo is created #4308
Comments
I think your first requirement has been implemented. |
@shuhaowu You can create a directory by specifying a full path when creating a new file. Git doesn't allow to check in an empty folder. |
Ah I see how it works. I think the second issue still stands so I'm going to change this issue to be that one exclusively. |
Seeing the same issue. Create new file/Upload File button is only shown after a branch and initial commit has been created. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
I think this is a reasonable thing to have - it should be possible to do. |
Right! |
+1 same issue. Created bare repo from scratch, in GUI, no initial file addition possible from the GUI in the bare repo after creation. |
+1 same issue. Created bare repo from scratch, in GUI, no initial file addition possible from the GUI in the bare repo after creation. |
+1, same here. Is there some real reasons why creating a new file to empty repo in GUI is impossible? |
AFAIK git doesn't allow it / see empty directories, so the feature would require a file such as ".keep" creating. |
How is a new file an empty directory? The root directory is already "indexed" in a way, since it's the root of the Git repository. Then, you can always add files to the repository. |
I'm going to lock this thread, as of right now we are simply waiting on a PR. There is an older one open at #6918, and if anyone would like to take it over please contact @lunny (or message on said PR) to avoid toe stepping. 🙂 If you would like to make an alternative proposal, please open a new issue. |
resolved by #24164 |
[x]
):Description
If a git repository is created without any files in it (without any branch/commit/etc), you cannot create a new file from the web ui.
Screenshots
The text was updated successfully, but these errors were encountered: