Add empty folder/directory to a git repository git Posted on November 16, 2014 | by admin Create a .gitignore file with the following * !.gitignore if you want sub directories you will need to include them in the exclude part which is prefixed with an exclamation mark. ie. * !.gitignore!/mysubdirectory Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window) Related