Skip to content

Git Add Empty Directory

To make a directory stay empty in the repository by creating a .gitignore file inside that directory that contains the following.

# Ignore everything in this directory
*
# Except this file
!.gitignore