Keep an empty directory in git
Git doesn't track empty directories. To keep an empty directory in your repository, add a .gitignore with the following contents:
# Ignore all files
*
# apart from this ignore file
!.gitignore
Alternative approach
An unofficial convention is to use an empty .gitkeep file:
touch .gitkeep