Git only tracks files - when you run git add <directory> , what you are actually doing tells Git to add the contents of any files in this directory. Since the directory is currently empty, it does not add anything and therefore does not commit anything.
For example, the following will work:
$ touch css/main.css $ git add css $ git commit -m "Add empty main CSS file"
Amber source share