From c0ded8a0bdd4dad99919f366b6e763cc47a8892c Mon Sep 17 00:00:00 2001 From: RyosukeDTomita Date: Sat, 4 Jan 2025 16:09:16 +0900 Subject: [PATCH] feat: gitignore global --- doc/tools_doc/gitignore.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/tools_doc/gitignore.md diff --git a/doc/tools_doc/gitignore.md b/doc/tools_doc/gitignore.md new file mode 100644 index 0000000..82c3066 --- /dev/null +++ b/doc/tools_doc/gitignore.md @@ -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にいれたいファイルはここに入れておくのが良さそう。