gitignore keep file within a directory only code example Example: gitignore all files and folders in only one folder * */ !.gitignore