适用于无法修改 .gitignore 的情况

echo "my_local_file.txt" >> .git/info/exclude