git exclude nested folder

C++
in .gitignore
    NestedFolderName/
Source

Also in C++: