0
1

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 3 years have passed since last update.

.gitignore に Pods/ を追記しても反映されない時の対処法

Posted at

iOS のライブラリ管理で最もよく使われる CocoaPods の Pods ディレクトリを git で管理したくない時、
.gitignore のファイルに Pods/と記載する。

しかし Git のキャッシュが原因で反映されないことがある。

$ cd プロジェクトのディレクトリ
$ git rm -r --cached .
$ git add .
$ git commit -m ".gitignoreの反映" 

以上でバージョン管理を外せる。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?