[{"data":1,"prerenderedAt":103},["ShallowReactive",2],{"post:discover-why-git-wont-track-file":3},{"id":4,"title":5,"body":6,"date":92,"description":12,"draft":93,"extension":94,"meta":95,"navigation":96,"path":97,"seo":98,"stem":99,"tags":100,"__hash__":102},"posts\u002Fposts\u002Fdiscover-why-git-wont-track-file.md","TIL: Discover Why Git Won't Track a File",{"type":7,"value":8,"toc":89},"minimark",[9,13,29,58,65,85],[10,11,12],"p",{},"This was frustrating. I couldn't track changes to multiple files buried in a folder!",[10,14,15,16,23,24,28],{},"Again, ",[17,18,22],"a",{"href":19,"rel":20},"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F12144633\u002Fwhich-gitignore-rule-is-ignoring-my-file",[21],"nofollow","Stack Overflow to the rescue",". Use ",[25,26,27],"code",{},"git check-ignore -v \u003Cfilename>"," to see why your changes are being ignored.",[30,31,36],"pre",{"className":32,"code":33,"language":34,"meta":35,"style":35},"language-bash shiki shiki-themes github-light github-dark","git check-ignore -v plugins\u002Fmyfolder\n","bash","",[25,37,38],{"__ignoreMap":35},[39,40,43,47,51,55],"span",{"class":41,"line":42},"line",1,[39,44,46],{"class":45},"sScJk","git",[39,48,50],{"class":49},"sZZnC"," check-ignore",[39,52,54],{"class":53},"sj4cs"," -v",[39,56,57],{"class":49}," plugins\u002Fmyfolder\n",[10,59,60,61,64],{},"This should spit a ",[25,62,63],{},".gitignore"," filepath, or some other reason why your file has been ignored. In my case, it even worked with a broken submodule, which was the root cause I couldn't track\u002Fcommit changes.",[10,66,67],{},[68,69,70,71,76,77,84],"strong",{},"PS. Turns out this ",[17,72,75],{"href":73,"rel":74},"https:\u002F\u002Fstackoverflow.com\u002Fusers\u002F179332\u002Fadam-spiers",[21],"awesome fellow",", after initially answering the question with a \"Nope, sorry, not supported\" wrote ",[17,78,81],{"href":79,"rel":80},"https:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-check-ignore",[21],[25,82,83],{},"git check-ignore"," to support this functionality. Where else do you get such help?",[86,87,88],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":35,"searchDepth":90,"depth":90,"links":91},2,[],"2018-05-02T17:22:06-04:00",false,"md",{},true,"\u002Fposts\u002Fdiscover-why-git-wont-track-file",{"title":5,"description":12},"posts\u002Fdiscover-why-git-wont-track-file",[46,101],"til","ogGkumUoFgMM1Pa5lGukKPGR1bhhRHiY83n1dJhM_0Y",1790471528205]