How to add an empty directory to a git repository

1. Create .gitignore file inside an empty folder. 2. Insert the following code inside .gitignore file. # Ignore everything in this directory * # Except this file !.gitignore Optional: If you’re using Netbeans and by default all system core files are being ignored to prevent uploading to repo for security purposes. To include them in the repo you[…]