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

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

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

How to manage projects under Version Control Systems
If you decide to share IDE project files with other developers, follow these guidelines: Directory-based project format (.idea directory) This format is used by...

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のテンプレを置いてくれてるのて見てみよう

 

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

 

コメント

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