git ignore top folder only code example Example: git exclude nested folder in .gitignore NestedFolderName/