{"id":196,"date":"2010-04-21T20:02:17","date_gmt":"2010-04-21T20:02:17","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/?p=196"},"modified":"2010-04-21T20:04:08","modified_gmt":"2010-04-21T20:04:08","slug":"stop-git-from-showing-unrelated-files","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/progamming\/stop-git-from-showing-unrelated-files\/","title":{"rendered":"Stop git from showing unrelated files"},"content":{"rendered":"<p>If you have a lot of files you&#8217;re not going to check in, git&#8217;s default behavior of showing untracked files can get cluttersome (new word I just made up).<\/p>\n<p>Doing the following suppresses this behavior:<br \/>\n<code><br \/>\ngit config status.showUntrackedFiles no<br \/>\n<\/code><br \/>\nIn the <a href=\"http:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/git-config.html\">git-config man page<\/a>, it shows it as case-sensitive, but I tried it all lowercase and it works.<\/p>\n<p>Now, by default, git status won&#8217;t show untracked files. You can show untracked files with a <code>-u<\/code> switch. Git thoughtfully lets you know this possibility with a line at the end of the status output.<\/p>\n<div class='wp_likes' id='wp_likes_post-196'><a class='like' href=\"javascript:wp_likes.like(196);\" title='' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'>Be the first to like.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(196);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(196);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you have a lot of files you&#8217;re not going to check in, git&#8217;s default behavior of showing untracked files can get cluttersome (new word I just made up). Doing the following suppresses this behavior: In the git-config man page, it shows it as case-sensitive, but I tried it all lowercase and it works. Now, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[48],"tags":[25],"class_list":["post-196","post","type-post","status-publish","format-standard","hentry","category-progamming","tag-git"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=196"}],"version-history":[{"count":3,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/196\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/196\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}