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

Re: How can I do an automatic stash when doing a checkout?

From
DDeMarcus <demarcus@hotmail.com>
Date
Dec 19, 2011, 21:46 UTC
Message-ID
<jcobbo$jab$1@dough.gmane.org>
In-Reply-To
<4EEF736A.4070802@ira.uka.de>
On 2011-12-19 18:24, Holger Hellmuth wrote:
Show 12 quoted lines
> On 18.12.2011 16:10, DeMarcus wrote:
>>> You probably don't want to use stash. Just commit whatever partial work
>>> you've done.
>>>
>>
>> It feels strange doing a commit of partial work. Some of the files may
>> not even be supposed to be checked in.
>
> You have heard of "git commit --amend" ? Makes partial commits really
> easy to work with.
>
>

Yes, I know that one. It's just that I know myself, I don't really like to go back rearranging. I prefer to keep things spread out at first and then inserted properly when it's time. But maybe I'm just unused to the git workflow.

Previous: Holger HellmuthNext: Junio C Hamano
Message 8 of 9 in “How can I do an automatic stash when doing a checkout?”
  1. DeMarcusDec 18, 2011
  2. Bruce Stephens brsDec 18, 2011
  3. DeMarcusDec 18, 2011
  4. Bruce Stephens brsDec 18, 2011
  5. Dirk SüsserottDec 19, 2011
  6. DeMarcusDec 19, 2011
  7. Holger HellmuthDec 19, 2011
  8. DeMarcusDec 19, 2011
  9. Junio C HamanoDec 19, 2011

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.