I am Charmie

メモとログ

github: upload an empty directory

It's technically impossible to commit an empty directory to github because github only manages files. However, there exists a practical solution that stores a .gitignore file inside a directory and commit the .gitignore file so that the directory is commited. The contents of the .gitignore is as

# ignore everything except .gitignore and folders that I care about:
*
!images*
!.gitignore