how to exclude a file gitignore code example Example: git remove file from gitignore git rm --cached <file>