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.

链接地址: http://www.djcxy.com/p/18896.html

上一篇: 从浏览器打印到Brother标签打印机[已更新]

下一篇: 通过Web界面在Gitlab repo中创建一个目录