(プロジェクトのパス)/.git/info/exlude に.gitignoreと同じように記載するだけでできました。 # git ls-files --others --exclude-from=.git/info/exclude # Lines that start with '#' are comments. # For a project mostly in C, the following would be a good set of # exclude patterns (uncomment them if you want to use them): # *.[oa] # *~ #************************************** my ignore settings .gitignore .DS_Store? ._* .Spotlight-V100
![gitのローカル環境で自分のファイルだけを無視(.gitignore)する方法。 – yama-log](https://cdn-ak-scissors.b.st-hatena.com/image/square/8b080fdc6ecc77b48d07ca06e5b9b6a2393c980a/height=288;version=1;width=512/https%3A%2F%2Finfo.yama-lab.com%2Fwp-content%2Fuploads%2F2017%2F06%2Fts.png)