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

Last update: August 9, 2020