.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.xml, usage.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のテンプレを置いてくれてるのて見てみよう
gitignore/Global/JetBrains.gitignore at main · github/gitignore
A collection of useful .gitignore templates. Contribute to github/gitignore development by creating an account on GitHub...
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
って書いてある
自分が使っているIDEのところだけ切り出して使ってもいいし、迷ったらまるごと全部そのままでもOK
コメント