site  contact  subhomenews

Empty folders not recognized by git

April 09, 2023 — BarryK

I had completely forgotten about this. Many years ago, when using the Fossil repository, I created a file named 'EMPTYDIRMARKER' in every empty folder. However, when setting up woofQ on github.com in 2022, I forgot that git also has this limitation.

The light came on this morning, while looking at the woofQ project on github.com, and realized some folders were missing. So, I created a script to create 'EMPTYDIRMARKER' in every empty folder:

https://github.com/bkauler/woofq/blob/main/create-EMPTYDIRMARKER-recursively

woofQ has a script 'merge2out', that removes this file when export the project.   

Tags: easy