add ignore folder to fit code example Example: how to put access.log in gitignore git rm --cached [file] git update-index --assume-unchanged [file]