oliverdavies.uk/content/node.63936440-9617-4480-9950-ed212f3d3861.json
2025-05-11 20:02:13 +01:00

100 lines
No EOL
4.9 KiB
JSON

{
"uuid": [
{
"value": "63936440-9617-4480-9950-ed212f3d3861"
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
"value": "2025-04-21T01:21:38+00:00"
}
],
"revision_uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"revision_log": [],
"status": [
{
"value": true
}
],
"uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"title": [
{
"value": "Ignoring things globally"
}
],
"created": [
{
"value": "2024-01-28T00:00:00+00:00"
}
],
"changed": [
{
"value": "2025-04-21T01:21:38+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2024\/01\/28\/ignoring-things-globally",
"langcode": "en"
}
],
"body": [
{
"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 ",
"summary": null
}
],
"feeds_item": [
{
"imported": "2025-04-21T01:21:38+00:00",
"guid": null,
"hash": "f8e98c50f5284056cf311cfa9f72e1b7",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}