PychamやIntelliJ IDEAなどJetBrainsを使う時の.gitignore

.ideaディレクトリを全部.gitignoreに追加していいのか?

疑問に思ったので調べてみた

Just a moment...

This format is used by all the recent IDE versions by default. Here is what you need to share:

  • All the files under the .idea directory in the project root except the workspace.xmlusage.statistics.xml, and tasks.xml files and the shelf directory which store user-specific settings
  • All the .iml module files that can be located in different module directories (applies to IntelliJ IDEA)

workspace.xml

usage.statistics.xml

tasks.xml

*.iml

はgitで共有してるほうが良いらしい

For Git you can use this .gitignore as the starting point.

さっきのページの下の方に.gitignoreのテンプレを置いてくれてるのて見てみよう

 

https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm

って書いてある

自分が使っているIDEのところだけ切り出して使ってもいいし、迷ったらまるごと全部そのままでもOK

 

コメント

タイトルとURLをコピーしました