{"id":8131,"date":"2015-11-28T01:39:19","date_gmt":"2015-11-28T01:39:19","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/28\/resync-git-repo-with-new-gitignore-file-open-source-projects-github-gitignore\/"},"modified":"2022-08-30T15:03:00","modified_gmt":"2022-08-30T15:03:00","slug":"resync-git-repo-with-new-gitignore-file-open-source-projects-github-gitignore","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/28\/resync-git-repo-with-new-gitignore-file-open-source-projects-github-gitignore\/","title":{"rendered":"Resync git repo with new gitignore file-open source projects github\/gitignore"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cddc8acf94a8ad6345666208e919de77?s=128&amp;d=identicon&amp;r=PG\" \/> <strong>gracchus<\/strong><\/p>\n<p>I might misunderstand, but are you trying to delete files newly ignored or do you want to ignore new modifications to these files ? In this case, the thing is working.<\/p>\n<p>If you want to delete ignored files previously commited, then use<\/p>\n<pre><code>git rm \u2013cached `git ls-files -i \u2013exclude-standard\ngit commit -m 'cleanup'\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>gracchus I might misunderstand, but are you trying to delete files newly ignored or do you want to ignore new modifications to these files ? In this case, the thing is working. If you want to delete ignored files previously commited, then use git rm \u2013cached `git ls-files -i \u2013exclude-standard git commit -m &#8216;cleanup&#8217;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8131","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8131"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8131\/revisions"}],"predecessor-version":[{"id":8596,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8131\/revisions\/8596"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}