gitignoreをgitignoreでignore(無視)
- gitignoreファイルにgitignoreファイルを無視するように指定してgit管理から外す方法。
~~~
.gitignore
~~~
.gitファイルのexcludeファイルに追記
- 対象のリポジトリにある.git/info/excludeファイルにgitignoreを追記する方法。
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
/* 上記は元々記載された情報。この下から追記 */
.gitignore