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

gitignoreファイルを除外する方法メモ

Posted at

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