{"id":1492,"date":"2012-10-06T11:31:39","date_gmt":"2012-10-06T07:31:39","guid":{"rendered":"http:\/\/nayarweb.com\/blog\/?p=1492"},"modified":"2012-10-06T11:34:08","modified_gmt":"2012-10-06T07:34:08","slug":"a-very-stupid-gitignore-file-3","status":"publish","type":"post","link":"https:\/\/nayarweb.com\/blog\/2012\/a-very-stupid-gitignore-file-3\/","title":{"rendered":"A very stupid .gitignore file :("},"content":{"rendered":"<p>I created a .gitignore file and inserted few directories in it. When i ran this command,<\/p>\n<blockquote><p>git add *<\/p><\/blockquote>\n<p>Got this error message<\/p>\n<blockquote><p>The following paths are ignored by one of your .gitignore files:<\/p>\n<p>myfiles\/<\/p>\n<p>Use -f if you really want to add them. fatal: no files added<\/p><\/blockquote>\n<p>After doing some research on the internet, found this: <a href=\"http:\/\/stackoverflow.com\/a\/6609441\">http:\/\/stackoverflow.com\/a\/6609441<\/a><\/p>\n<p>It worked after i added a comment. Now, when i remove the comment, it still works. WTF!?<\/p>\n<p>Programmers&#8217; life suck \ud83d\ude41<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I created a .gitignore file and inserted few directories in it. When i ran this command, git add * Got this error message The following paths are ignored by one of your .gitignore files: myfiles\/ Use -f if you really want to add them. fatal: no files added After doing some research on the internet, &hellip; <a href=\"https:\/\/nayarweb.com\/blog\/2012\/a-very-stupid-gitignore-file-3\/\" class=\"continue-reading\">Continue reading <span class=\"screen-reader-text\">A very stupid .gitignore file \ud83d\ude41<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[149],"class_list":["post-1492","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-git"],"_links":{"self":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/1492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/comments?post=1492"}],"version-history":[{"count":3,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/1492\/revisions"}],"predecessor-version":[{"id":1498,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/1492\/revisions\/1498"}],"wp:attachment":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media?parent=1492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/categories?post=1492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/tags?post=1492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}