how to make git ignore all the files in a folder except for one code example Example: git ignore all files and folders in folder * */ !.gitignore