Create a directory in Gitlab repo through web interface
In a self-hosted GitLab installation, how can we create a new directory in a repository through the web interface ?
In GitHub web interface, we can create a new directory by giving a filename like this:
/new-dir-name/new-file-name.md
..which will create a new directory named new-dir-name/
and put the file new-file-name.md
inside it.
But this is not working with GitLab through the web interface . How can we do this?
(It's clear that we cannot create empty directories in a git repo.)
Not possible yet.
That is not an available feature as of now, but the development team is willing to include this functionality. Check http://feedback.gitlab.com/forums/176466-general/suggestions/5482948-create-directories-from-the-web-ui for more information
this is not working with GitLab. How can we do this?
Not through the web interface.
Workaround:
if you add in your local clone new-dir-name/new-file-name.md
, commit and push, you will get a new-dir-name
folder in your GitLab repo.