{"id":749,"date":"2011-07-10T16:25:00","date_gmt":"2011-07-10T16:25:00","guid":{"rendered":"https:\/\/www.keenertech.com\/?p=749"},"modified":"2011-07-10T16:25:00","modified_gmt":"2011-07-10T16:25:00","slug":"ignoring-files-with-git","status":"publish","type":"post","link":"https:\/\/staging.keenertech.com\/?p=749","title":{"rendered":"Ignoring Files with Git"},"content":{"rendered":"\n<p>When you&#8217;re doing software development, not every file in your working directory tree is an end product that you&#8217;d like to check in with git.&nbsp;<em>Git<\/em>&nbsp;allows you to specify certain files to be ignored.<\/p>\n\n\n\n<p>To have&nbsp;<em>git<\/em>&nbsp;ignore certain files, simply include a&nbsp;.gitignore&nbsp;file in the top-level directory of your git repository. You should check the file in so that&#8217;s shared with everybody on your development team.<\/p>\n\n\n\n<p>Here&#8217;s a list of the files that my team has identified as files that should be ignored when developing Rails applications:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   .bundle\n   .DS_Store\n   *.log\n   log\/*\n   *.db\n   db\/*.sqlite3\n   public\/system\/*\n   *.swp\n   *~\n   tmp\/**\/*\n   dump\n   *.lock\n   tmp\/*\n   coverage\/*\n   spec\/coverage\/*\n   rails_best_practices_output.html\n   schema.rb\n   solr\/data\n   spec\/models\/coverage\n   spec\/controllers\/coverage\n   spec\/views\/coverage\n   .redcar\n   *redcar*\n   vendor\/cache\n   vendor\/ruby<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When you&#8217;re doing software development, not every file in your working directory tree is an end product that<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[91],"class_list":["post-749","post","type-post","status-publish","format-standard","hentry","category-technology","tag-git"],"_links":{"self":[{"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=\/wp\/v2\/posts\/749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=749"}],"version-history":[{"count":0,"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=\/wp\/v2\/posts\/749\/revisions"}],"wp:attachment":[{"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.keenertech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}