{"id":398,"date":"2013-05-22T09:20:54","date_gmt":"2013-05-22T09:20:54","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=398"},"modified":"2013-05-22T11:14:52","modified_gmt":"2013-05-22T11:14:52","slug":"gitignore-ignoring-files-and-folders-in-git","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/gitignore-ignoring-files-and-folders-in-git\/","title":{"rendered":".gitignore &#8211; Ignoring files and folders in GIT"},"content":{"rendered":"<p>I was using a GIT GUI today to add my ignores to the .gitignore file and couldn&#8217;t see an option on adding folders, so here&#8217;s a 10 second reminder on how to create a .gitignore by hand&#8230;<\/p>\n<p>So, if you need to ignore files and\/or folders in GIT simply create a .gitignore text file in the root of your repository and enter the files\/folders in the following fashion<\/p>\n<p>\/StockControl.suo<br \/>\n\/StockControl\/bin<\/p>\n<p>where the .suo is a file and bin is a folder.<\/p>\n<p>Hence the format is<\/p>\n<p>\/&lt;folder_path&gt;\/&lt;filename&gt;<br \/>\n\/&lt;folder_path&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was using a GIT GUI today to add my ignores to the .gitignore file and couldn&#8217;t see an option on adding folders, so here&#8217;s a 10 second reminder on how to create a .gitignore by hand&#8230; So, if you need to ignore files and\/or folders in GIT simply create a .gitignore text file in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[37],"tags":[],"class_list":["post-398","post","type-post","status-publish","format-standard","hentry","category-git"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=398"}],"version-history":[{"count":5,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/398\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}