1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Git でコミットした .DS_Store を消したい

Posted at

間にスペースある時の対策。

$ git ls-files | fgrep .DS | xargs git rm --cached
fatal: not removing 'iTunes/iTunes' recursively without -r
$ git ls-files | fgrep .DS | xargs -I{} git rm --cached "{}"
rm '.DS_Store'
rm 'iTunes/.DS_Store'
rm 'iTunes/iTunes Media/.DS_Store'
rm 'iTunes/iTunes Media/Music/.DS_Store'
rm 'iTunes/iTunes/.DS_Store'
1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?