{"id":7138,"date":"2015-01-29T18:04:38","date_gmt":"2015-01-29T10:04:38","guid":{"rendered":"http:\/\/jpuyy.com\/?p=7138"},"modified":"2015-07-24T13:43:58","modified_gmt":"2015-07-24T05:43:58","slug":"git-find-ignored-files","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=7138","title":{"rendered":"git\u67e5\u770b\u6e05\u7406gitignore\u7684\u6587\u4ef6"},"content":{"rendered":"<p>\u67e5\u770b\u53ef\u4ee5\u6e05\u7406\u7684\u6587\u4ef6<\/p>\n<pre>git clean -ndX<\/pre>\n<p>\u786e\u5b9a\u597d\u4e4b\u540e\u8981\u6e05\u7406\u8fd0\u884c<\/p>\n<pre>git clean -fdX<\/pre>\n<p>\u67e5\u770b clean \u7684 help<\/p>\n<pre>$ git help clean\r\n\r\ngit-clean - Remove untracked files from the working tree\r\n-n, --dry-run - Don't actually remove anything, just show what would be done. \u6d4b\u8bd5\u67e5\u770b\u54ea\u4e9b\u6587\u4ef6\u53ef\u4ee5\u88ab\u5220\u9664\u3002\r\n-d - Remove untracked directories in addition to untracked files. \u540c\u65f6\u6e05\u7406\u76ee\u5f55\r\n-X - Remove only files ignored by git. \u6e05\u7406\u88ab ignored \u7684\u6587\u4ef6\r\n<\/pre>\n<p>\u53c2\u8003:<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/466764\/show-ignored-files-in-git<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770b\u53ef\u4ee5\u6e05\u7406\u7684\u6587\u4ef6 git clean -ndX \u786e\u5b9a\u597d\u4e4b\u540e\u8981\u6e05\u7406\u8fd0\u884c git clean -fdX \u67e5\u770b clean \u7684 help $ git help clean git-clean &#8211; Remove untracked files from the working tree -n, &#8211;dry-run &#8211; Don&#8217;t actually remove anything, just show what would be done. \u6d4b\u8bd5\u67e5\u770b\u54ea\u4e9b\u6587\u4ef6\u53ef\u4ee5\u88ab\u5220\u9664\u3002 -d &#8211; Remove untracked directories in addition to untracked files. \u540c\u65f6\u6e05\u7406\u76ee\u5f55 -X &#8211; Remove only files [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-7138","post","type-post","status-publish","format-standard","hentry","category-life"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7138"}],"version-history":[{"count":7,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7138\/revisions"}],"predecessor-version":[{"id":7491,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7138\/revisions\/7491"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}