git/list[1] front-page[2] threads[3] people[4] search[5] about
 

"fatal: git-write-tree: error building trees" from `git stash`

From
Alex Vandiver <alex@chmrr.net>
Date
Dec 27, 2012, 18:07 UTC
Message-ID
<1356631626.13818.126.camel@umgah.localdomain>
  Heya,
I just ran into the following with `git stash`.  The set-up:
        git init
        echo "Initial" > foo
        git add .
        git commit -m 'Initial commit'
        echo "Rewrite" > foo
        git commit -am 'Second commit, rewrites content'
        echo "Stashed changes" >> foo
        git stash
        git co HEAD~
        
$ git stash pop
Auto-merging foo
CONFLICT (content): Merge conflict in foo
Recorded preimage for 'foo'

$ git stash foo: needs merge foo: needs merge foo: unmerged (aeaa7e5e87cf309a7368d5d92a71c1f9e6a8c9e7) foo: unmerged (a77fa514de2720c72c1a861de098595959a2c97a) foo: unmerged (4a622d2b991f1a19ba7be313a46dc6f03692cd0a) fatal: git-write-tree: error building trees Cannot save the current index state

 - Alex
Next: Junio C Hamano
Message 1 of 6 in “"fatal: git-write-tree: error building trees" from `git stash`”
  1. Alex VandiverDec 27, 2012
  2. Junio C HamanoDec 27, 2012
  3. Alex VandiverDec 27, 2012
  4. Jeff KingDec 27, 2012
  5. Junio C HamanoDec 27, 2012
  6. Junio C HamanoDec 27, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.