GitHub does not provide committing empty folder in a development tree. To avoid this restriction, we create an empty
.keep file in the empty directory which we want to commit. Now you’re able to commit the empty directory to your development tree.
Create empty files begin with a dot on Windows
This is easier than you think. Open your Explorer and click through to the empty directory where the file should be created. Than press and hold the,
shift key open the context menu by clicking the
right mouse button and select
Command Prompt Here. Enter
type NUL > .keep and press the enter button and
.keep the file are created.
C:my_empty_folder>type NUL > .keep
Create empty files begin with a dot on Mac OS X
Open a Terminal, browse to the folder where you would like to create the empty file and type
touch .keep and press the enter button and
.keep the file is created.