ignore all files in folder except one gitignore code example Example: git ignore all files and folders in folder * */ !.gitignore