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

Why does git stash create two commits?

From
PSPhillip Susi <psusi@ubuntu.com>
Date
Jan 30, 2012, 18:20 UTC
Message-ID
<4F26DF7B.7050109@ubuntu.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

git stash makes two commits, one that has no changes from the base, and one to stash your changes in. Why?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPJt97AAoJEJrBOlT6nu75G1cH/1qXXMFBPr5vGZbPXCCgG4eG nmTVlVjxa9Wk52rY/o3NfrgDrftuKIeMdjrFxe/hOsuU37rfMUpWlGa6wtwOIgHL Cm2s/+PssrOwpajb+v3h+0vqZGNULaxPNpApDjB4JWTxNs86aCV/+zkzoqNjO8y4 OfAZnzqe03BJmPjldvygswD0RMvRvBuHyGRVhTgATcc89yZmihFxCNyekHdVUSvD zVIUgyUj1vlSRDnSJrtARbKR3JZQeTtN6rMLIOxN0T3iOkltMWFGMoVbJ23kiUyD LuMSNMrBvvkEU6g6czqQNNyreSut/b1r1ZTt/pvF0qDWUE5CZ9Qhgs6Xz7prtWs= =Yp0K -----END PGP SIGNATURE-----

Next: Seth Robertson
Message 1 of 3 in “Why does git stash create two commits?”
  1. Phillip SusiJan 30, 2012
  2. Seth RobertsonJan 30, 2012
  3. Junio C HamanoJan 30, 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.