ignore file gitignore git code example Example 1: git exclude folder directory_to_exclude/ Example 2: git ignore not saving changes git rm -rf --cached . git add .