Open2

ローカルのgitignore設定

pluckpluck

やりたいこと

  • ローカルのディレクトリ内にバージョン管理していないファイルが多い
  • でも個人の環境のものだからrootの.gitignoreに追加するのはちょっと違う
  • ローカルのみで機能する.gitignoreに相当するものがほしい

解決策

  • .git/info/excludeに書く
    (これはバージョン管理されないものなので,ローカルだけで使うファイルなどを書いておく.)
pluckpluck

実際のファイルはこんな感じで,書き方は.gitignoreと同じ.

.git/info/exclude
# 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]
# *~

hoge.csv