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