"value":"\n <p>Add everything and ignore what you don't want, or ignore everything and explicitly add what you need.<\/p>\n\n<p>There are two ways to structure a .gitignore file.<\/p>\n\n<p>The default approach is that all files can be added, and you specify the files and directories you want to ignore.<\/p>\n\n<p>For example, if my <code>.gitignore<\/code> file was this, these two directories would be ignored:<\/p>\n\n<pre><code class=\"language-plain\">vendor\nweb\n<\/code><\/pre>\n\n<p>The other approach is to ignore everything and unignore the things to add. For example:<\/p>\n\n<pre><code class=\"language-plain\">*\n!build.yaml\n!Dockerfile\n!docker-compose.yaml\n!web\/*\/custom\n<\/code><\/pre>\n\n<p>Both approaches work and are regularly used.<\/p>\n\n<p>Which approach do you prefer and why?<\/p>\n\n<p>Reply and let me know.<\/p>\n\n ",
"format":"full_html",
"processed":"\n <p>Add everything and ignore what you don't want, or ignore everything and explicitly add what you need.<\/p>\n\n<p>There are two ways to structure a .gitignore file.<\/p>\n\n<p>The default approach is that all files can be added, and you specify the files and directories you want to ignore.<\/p>\n\n<p>For example, if my <code>.gitignore<\/code> file was this, these two directories would be ignored:<\/p>\n\n<pre><code class=\"language-plain\">vendor\nweb\n<\/code><\/pre>\n\n<p>The other approach is to ignore everything and unignore the things to add. For example:<\/p>\n\n<pre><code class=\"language-plain\">*\n!build.yaml\n!Dockerfile\n!docker-compose.yaml\n!web\/*\/custom\n<\/code><\/pre>\n\n<p>Both approaches work and are regularly used.<\/p>\n\n<p>Which approach do you prefer and why?<\/p>\n\n<p>Reply and let me know.<\/p>\n\n ",