<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git on Lantean</title><link>https://www.lantean.co/tags/git/</link><description>Recent content in Git on Lantean</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 23 Jun 2014 22:08:29 +0000</lastBuildDate><atom:link href="https://www.lantean.co/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Git toggled folders as submodules!?</title><link>https://www.lantean.co/posts/git-toggled-folders-as-submodules/</link><pubDate>Mon, 23 Jun 2014 22:08:29 +0000</pubDate><guid>https://www.lantean.co/posts/git-toggled-folders-as-submodules/</guid><description>&lt;p&gt;Few days ago, i had to struggle with a strange scenario in which git began tracking a folder, as if it was a submodule.&lt;/p&gt;
&lt;p&gt;Now, what&amp;rsquo;s strange with that?: &lt;strong&gt;i didn&amp;rsquo;t set any submodules&lt;/strong&gt;!. My .gitmodule file was empty (in fact, i didn&amp;rsquo;t even have that file).&lt;/p&gt;
&lt;p&gt;Thanks to &lt;a href="http://stackoverflow.com/questions/4185365/no-submodule-mapping-found-in-gitmodule-for-a-path-thats-not-a-submodule"&gt;this stackflow question&lt;/a&gt;, i ended up figuring out this solution:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-objc" data-lang="objc"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git ls&lt;span style="color:#f92672"&gt;-&lt;/span&gt;files &lt;span style="color:#f92672"&gt;--&lt;/span&gt;stage &lt;span style="color:#f92672"&gt;|&lt;/span&gt; grep &lt;span style="color:#ae81ff"&gt;160000&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git rm &lt;span style="color:#f92672"&gt;--&lt;/span&gt;cached [Paths retrieved from the command above]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Hopefully, this will help another lost soul!&lt;/p&gt;</description></item></channel></rss>