gitignore all folder with name code example
Example 1: gitignore all files and folders in only one folder
*
*/
!.gitignore
Example 2: how to put access.log in gitignore
git rm --cached [file]
git update-index --assume-unchanged [file]
*
*/
!.gitignore
git rm --cached [file]
git update-index --assume-unchanged [file]