LoginSignup
1
2

More than 5 years have passed since last update.

git 管理したくないファイルの扱い方

Posted at

git の対象にしたくないファイルってどう扱うの?
例えばログファイルとかテンポラリファイルとか
そんなときに便利なのが

.gitignore

です。

使い方は簡単で作業ディレクトリにこのファイルを作れば🆗

vim .gitignore

このファイルの中で
.log
と書けば、error.log などのファイルが管理対象外となる
これは便利

履歴をとることに意味がない
ファイルサイズが大きいなどで管理対象から除外したい場合は使ってみてください

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