{"id":64,"date":"2013-11-28T14:40:10","date_gmt":"2013-11-28T08:40:10","guid":{"rendered":"http:\/\/ronniee.net\/?p=64"},"modified":"2013-11-28T14:44:13","modified_gmt":"2013-11-28T08:44:13","slug":"ignore-a-filedirectory","status":"publish","type":"post","link":"https:\/\/ronniee.net\/?p=64","title":{"rendered":"Ignore a file\/directory"},"content":{"rendered":"<p>Git lets you ignore those files by assuming they are unchanged. This is done by running the<\/p>\n<pre class=\"lang:default decode:true \" >git update-index --assume-unchanged path\/to\/file.txt<\/pre>\n<p> command. Once marking a file as such, git will completely ignore any changes on that file; they will not show up when running  <\/p>\n<pre class=\"lang:default decode:true \" >git status<\/pre>\n<p> or  <\/p>\n<pre class=\"lang:default decode:true \" >git diff<\/pre>\n<p>, nor will they ever be committed.<\/p>\n<p>To make git track the file again, simply run<br \/>\n<code>git update-index --no-assume-unchanged path\/to\/file.txt<\/code>.<\/p>\n<p>To make a directory ignored:<\/p>\n<p>After <code>cd<\/code>ing into the folder you want to assume is unchanged, you can do either this:<\/p>\n<pre class=\"lang:default decode:true \" >git ls-files | tr '\\n' '\\0' | xargs -0 git update-index --assume-unchanged<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Git lets you ignore those files by assuming they are unchanged. This is done by running the git update-index &#8211;assume-unchanged path\/to\/file.txt command. Once marking a file as such, git will completely ignore any changes on that file; they will not show up when running git status or git diff , nor will they ever be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-git-command"],"_links":{"self":[{"href":"https:\/\/ronniee.net\/index.php?rest_route=\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ronniee.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ronniee.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ronniee.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ronniee.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":5,"href":"https:\/\/ronniee.net\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/ronniee.net\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions\/69"}],"wp:attachment":[{"href":"https:\/\/ronniee.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ronniee.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ronniee.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}