LoginSignup
1
2

More than 3 years have passed since last update.

【Git】.DS_Storeを無視する

Last updated at Posted at 2020-11-19

マシンを変えてから、設定してなく、煩わしかった。
備忘録。

自分のマシンのgit で.DS_Storeを無視する。

・ファイル作成

$ touch .gitignore_global

・無視したいファイルを記述

$ vi .gitignore_global

iして、「.DS_Store」書いてescして、:wqして、Enter

・作成したファイルを適用

$ git config --global core.excludesfile ~/.gitignore_global
  • そのリポジトリだけで良いなら、「--local」

・確認

下記に、適用したファイルが入っていれば完了

core.excludesfile=

$ git config --global --list
~省略~
core.excludesfile=/Users/XXXX/.gitignore_global

あとがき

あと回さないで、やっときゃよかった〜〜!
素敵なGit生活をー!!

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