Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.)

like image 841
Vishnu Haridas Avatar asked Feb 05 '14 10:02

Vishnu Haridas


People also ask

Does GitLab have a web interface?

To access the Web IDE, just click the button from any GitLab project. In this simple project with a job application, you can use the Web IDE to make a code change and push it to a feature branch.

What is .GitLab folder?

gitlab` folder for configuration file and update file name.


2 Answers

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

like image 100
novalore Avatar answered Sep 21 '22 15:09

novalore


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.

like image 22
VonC Avatar answered Sep 22 '22 15:09

VonC