git why ignore files code example Example 1: git exclude folder Click to copydirectory_to_exclude/ Example 2: git ignore not saving changes Click to copygit rm -rf --cached . git add .