This content originally appeared on DEV Community and was authored by Olusola Amoo
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.
This content originally appeared on DEV Community and was authored by Olusola Amoo

Olusola Amoo | Sciencx (2024-07-04T21:21:58+00:00) Git Gotcha: How to Commit Empty Folders with Ease. Retrieved from https://www.scien.cx/2024/07/04/git-gotcha-how-to-commit-empty-folders-with-ease/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.