1
1

More than 3 years have passed since last update.

.DS_Storeファイルとは?

Posted at

.DS_Storeファイルってなに??

全てのフォルダにMacで自動生成されるようになっており、フォルダやファイルに関するmeta情報が格納されている。(フォルダ内のアイコンの位置や表示設定など)

.DS_Storeは隠しファイルであるため、通常の使い方であれば表示されることがありませんが、隠しファイルを表示している設定している場合がある。

どう隠すか。

.gitignoreに記述してgitの管理から外す。

.gitignoreとは。

Git の管理に含めないファイルを指定するためのファイル。

-1 .gitignoreの作成

$ touch .gitignore

-2 .gitignoreの記述

.gitignoreの記述

-3 キャッシュの削除

$ git rm -r --cached .

-4 push

$ git add .
$ git commit -m "create .gitignore"
$ git push origin master

参考記事

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