How to create new directory in repository via Bash in starter workflow? #26048
-
Hello! Could somebody help me to create new directory in repository via Bash?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You just need to use the mkdir command to create the new directory via Bash shell.
|
Beta Was this translation helpful? Give feedback.
-
What do you mean by “a simple mkdir doesn’t work”? A common convention is to place a file called |
Beta Was this translation helpful? Give feedback.
What do you mean by “a simple mkdir doesn’t work”?
It should create the directory, but if you want to commit that to the repository, then you must place a file inside. Git doesn’t support tracking empty folders.
A common convention is to place a file called
.gitkeep
in such placeholder folders, either without content or with a brief description of what this file is for.