The empty directories will not be added to version control by Git as it supports only files. In this snippet, find some fast solutions to this problem.
The tutorial provides you with information you need to discard the unstaged changes in the working copy. Find several ways of discarding and get the codes.
Read this git tutorial and learn how you can force Git to forget about a file that was tracked but is now in .gitignore list.
Read this tutorial and solve the problem of stashing untracked files including ignored files in .gitignore. Find method presented by Git new versions.
This snippet explains how to stop tracking and ignore changes to a file in git.