Git Gotcha: How to Commit Empty Folders with Ease

Git Gotcha: How to Commit Empty Folders with Ease

So you’re in the same situation as me, right? You have some empty folders that you don’t have content for yet, but you want to commit them and make them available on your remote repository.

Well, you can easily achieve this by creating a .gitkeep file in each of the folders.

When you commit, changes get included. When you push, they get pushed too.