higan96技術メモ

https://github.com/higan96

ホームフォルダにある.gitignoreの設定を読み込めるようにする

毎回、gitignoreすんの面倒なんで、必ず無視したいものは事前に設定しておきたい。

git config --global core.excludesfile ~/.gitignore

これでホームフォルダの.gitignoreを読み込める。

~/.gitignore

ちなみに自分の~/.gitignoreはこんな感じ

.idea/

.iml

.DS_Store
Thumbs.db

上の2つはIDEIntelliJ関係、下ふたつは同じみのやつら。