Skip to content

How to create new directory in repository via Bash in starter workflow? #26048

Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants