5
2

【Python/Git】pycacheをgit ignoreする

Last updated at Posted at 2023-11-29

Pythonのパッケージを実行すると、各パッケージに__pycache__フォルダーが自動生成されますよね。
ソース管理上邪魔ですよね。
こうすればいいです。

.gitignore
**/__pycache__/**

こうすることにより、全ディレクトリにある__pycache__ディレクトリが全てignoreされます。

この記事を読んでいる方は、次の記事も読んでいるのかもしれません

5
2
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
5
2