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