"value":"\n <p>Yesterday's email was about repository-specific .gitignore files and different ways to write them.<\/p>\n\n<p>But there's a setting that most people don't know about, where you can configure a global <code>.gitignore<\/code> file.<\/p>\n\n<h2 id=\"what-i-use-it-for\">What I use it for<\/h2>\n\n<p>Whilst it doesn't replace repository-specific files, it's good for operating system-specific files - such as <code>.DS_Store<\/code> files on macOS.<\/p>\n\n<p>I have a convention where I have a <code>.ignored<\/code> directory in a project, and everything in it should be ignored by Git.<\/p>\n\n<p>Instead of adding this to every <code>.gitignore<\/code> file, and because it's specific to me, it's a good choice for a global ignore file.<\/p>\n\n<p>Anything that affects multiple users - such as ignoring <code>vendor<\/code> or <code>node_modules<\/code> should still be set in each repository.<\/p>\n\n<h2 id=\"how-do-you-add-it%3F\">How do you add it?<\/h2>\n\n<p>Add this to your <code>~\/.gitconfig<\/code> or <code>~\/.config\/git\/config<\/code> file to set the path for your global ignore file:<\/p>\n\n<pre><code class=\"language-plain\">[core]\n excludesFile = \"~\/.config\/git\/ignore\"\n<\/code><\/pre>\n\n<p>Then, create the file and add what you want to ignore everywhere.<\/p>\n\n<p>Just remember this is specific to you, and if others have something you've ignored globally and they haven't, they could still add and commit it.<\/p>\n\n ",
"format":"full_html",
"processed":"\n <p>Yesterday's email was about repository-specific .gitignore files and different ways to write them.<\/p>\n\n<p>But there's a setting that most people don't know about, where you can configure a global <code>.gitignore<\/code> file.<\/p>\n\n<h2 id=\"what-i-use-it-for\">What I use it for<\/h2>\n\n<p>Whilst it doesn't replace repository-specific files, it's good for operating system-specific files - such as <code>.DS_Store<\/code> files on macOS.<\/p>\n\n<p>I have a convention where I have a <code>.ignored<\/code> directory in a project, and everything in it should be ignored by Git.<\/p>\n\n<p>Instead of adding this to every <code>.gitignore<\/code> file, and because it's specific to me, it's a good choice for a global ignore file.<\/p>\n\n<p>Anything that affects multiple users - such as ignoring <code>vendor<\/code> or <code>node_modules<\/code> should still be set in each repository.<\/p>\n\n<h2 id=\"how-do-you-add-it%3F\">How do you add it?<\/h2>\n\n<p>Add this to your <code>~\/.gitconfig<\/code> or <code>~\/.config\/git\/config<\/code> file to set the path for your global ignore file:<\/p>\n\n<pre><code class=\"language-plain\">[core]\n excludesFile = \"~\/.config\/git\/ignore\"\n<\/code><\/pre>\n\n<p>Then, create the file and add what you want to ignore everywhere.<\/p>\n\n<p>Just remember this is specific to you, and if others have something you've ignored globally and they haven't, they could still add and commit it.<\/p>\n\n ",