gibo を使おう
.gitignore を生成してくれるコマンドツール gibo を使いましょう。楽なので。
導入方法は省略します。Windows ユーザーは scoop を使いましょう。
$ gibo dump Scala SBT JetBrains >> .gitignore
はい、これでおしまい... ではありません!
生成された .gitignore を開いて、次に示す文章の5行目以降をコメントアウトします:
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
そして、最終行に以下の内容を追加しましょう:
.bsp
おわり