How to git ignore all folder named code example Example: git ignore all files and folders in folder * */ !.gitignore