Sometimes in Git, we want to preserve a directory for use within a repository, but keep it empty of files. There are many reasons why you'd want to do this, but perhaps either the folder is used to store files the person cloning the repository needs to create, or a script creates custom files to put into that folder.
If we want to create a blank directory, we can do that easily, but it won't be pushed when we use git push
to push it to our remote. As such we need to do something slightly different.