I have made my first commit; then created a branch (let's say branch1).
In this branch I've created a directory 'example' and commited. In GitHub I see my new branch and the new directory 'example' that I have added.
Now I wonder how can I 'sync' back to master; and so have the 'example' folder deleted (as it doesn't exist on master).
EDIT : find . -type d -empty -exec touch {}/.gitignore \;
did the job.