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
Junio C Hamano <gitster@pobox.com>
Date
Dec 19, 2011, 22:24 UTC
Message-ID
<7vy5u8kxmu.fsf@alter.siamese.dyndns.org>
In-Reply-To
<jcobbo$jab$1@dough.gmane.org>
DeMarcus <demarcus@hotmail.com> writes:
> ... 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.
That does not have to do much with "the" git workflow.

If you are a kind of person who likes to work on N things concurrently without ever making and recording mistakes but would rather keep unfinished work without committing until done, you would need to have them in your working trees. By definition you would need to use N working trees, each of which permanently checks out its own branch, instead of a single working tree where you checkout one of N branches at a time to work on.

That is also a perfectly fine git workflow that we support with the contributed script git-new-workdir.

Previous: DeMarcus
Message 9 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.