<?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 Andrew's Memory Blog</title><link>https://andrewmemory.acornwall.net/tags/git/</link><description>Recent content in Git on Andrew's Memory Blog</description><generator>Hugo -- gohugo.io</generator><image><url>https://andrewmemory.acornwall.net/img/rss_image.png</url><title>Git on Andrew's Memory Blog</title><link>https://andrewmemory.acornwall.net/</link></image><language>en</language><managingEditor>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</managingEditor><webMaster>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</webMaster><copyright>Copyright 2009--2025</copyright><lastBuildDate>Thu, 24 Mar 2011 00:45:39 -0700</lastBuildDate><atom:link href="https://andrewmemory.acornwall.net/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Making git ignore file mode</title><link>https://andrewmemory.acornwall.net/blog/2011-03-24-making-git-ignore-file-mode/</link><pubDate>Thu, 24 Mar 2011 00:45:39 -0700</pubDate><author>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</author><guid>https://andrewmemory.acornwall.net/blog/2011-03-24-making-git-ignore-file-mode/</guid><description>&lt;p&gt;I have recently had to run git on Windows, and things there get all weird because by default git uses file mode as part of its comparison. Because of this, files whose mode have changed show up as different.&lt;/p&gt;
&lt;p&gt;Luckily, git has a way around this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;git config core.filemode false&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Nice!&lt;/p&gt;</description></item><item><title>Resolving git error: unable to create temporary sha1 filename</title><link>https://andrewmemory.acornwall.net/blog/2011-01-11-resolving-git-error-unable-to-create-temporary-sha1-filename/</link><pubDate>Tue, 11 Jan 2011 22:59:22 -0700</pubDate><author>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</author><guid>https://andrewmemory.acornwall.net/blog/2011-01-11-resolving-git-error-unable-to-create-temporary-sha1-filename/</guid><description>&lt;p&gt;I&amp;rsquo;m just starting to use git for source control. Tonight I got an error when I tried to commit:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;$ git add ./foo/bar/
error: unable to create temporary sha1 filename .git/objects/95: File exists
error: foo/bar/baz: failed to insert into database&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Luckily, &lt;a href="http://ariejan.net/2009/10/15/git-problem-error-unable-to-create-temporary-sha1-filename/" target="_blank" rel="noreferrer"&gt;someone else&lt;/a&gt; ran into this before me. The magic incantation:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;git fsck
git prune
git repack
git fsck&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;and then I was able to add my files.&lt;/p&gt;
&lt;p&gt;I ran into another case where this didn&amp;rsquo;t help. In that instance,&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;git gc&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;was able to get me committing again.&lt;/p&gt;</description></item></channel></rss>