12
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

IntelliJ IDEA + sbt 環境のための .gitignore の作り方

Last updated at Posted at 2020-03-02

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

おわり

12
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?