Skip to content

Commit

Permalink
Merge pull request #63 from RyosukeDTomita/feature/gitignore
Browse files Browse the repository at this point in the history
feat: gitignore global
  • Loading branch information
RyosukeDTomita authored Jan 4, 2025
2 parents dd9bbfd + c0ded8a commit 7f1b5f7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/tools_doc/gitignore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# gitignoreについて

## サンプル

[言語ごとのサンプル](https://github.com/github/gitignore)

---

## Globalなgitignore

> Patterns which a user wants Git to ignore in all situations (e.g., backup or temporary files generated by the user’s editor of choice) generally go into a file specified by core.excludesFile in the user’s ~/.gitconfig. Its default value is $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty, $HOME/.config/git/ignore is used instead.
> [公式ドキュメント](https://git-scm.com/docs/gitignore)
`$XDG_CONFIG_HOMEが設定されていない場合の`初期値は`$HOME/.config/ignore`なので共通でgitignoreにいれたいファイルはここに入れておくのが良さそう。

0 comments on commit 7f1b5f7

Please sign in to comment.