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

Re: The git newbie experience

From
Shawn Pearce <spearce@spearce.org>
Date
May 15, 2006, 05:31 UTC
Message-ID
<20060515053133.GB28068@spearce.org>
In-Reply-To
<7vy7x3x3ux.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 10 quoted lines
> Tommi Virtanen <tv@inoi.fi> writes:
> 
> > Oh, I'd love to have a quick stash, that's what we actually ended up
> > doing a lot. Although I'd rather see a real implementation use a branch
> > and not just a diff file, but.. yes please.
> 
> I'd rather do that with a diff file that can be used to do a
> 3-way (see how rebase does it with --full-index diff with am -3).
> No point creating and forgetting to remove a throw away branch
> and getting more complaints.

How is a quick stash different from a topic branch? I don't see any difference between the two. Your working directory was a topic branch, just an unnamed topic branch. Why don't you name it and deal with it once it is named?

I can see new users getting confused about what changes are in their quick stash or accidentially losing their quick stash by running it twice in a row.

Teaching new users to always work on a topic branch and committing before pulling/merging should be the favored workflow.

-- 
Shawn.
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 12 in “The git newbie experience”
  1. Tommi VirtanenMay 14, 2006
  2. Junio C HamanoMay 14, 2006
  3. Junio C HamanoMay 14, 2006
  4. Tommi VirtanenMay 15, 2006
  5. Junio C HamanoMay 15, 2006
  6. Shawn PearceMay 15, 2006
  7. Junio C HamanoMay 15, 2006
  8. Carl BaldwinMay 15, 2006
  9. Junio C HamanoMay 15, 2006
  10. Carl WorthMay 15, 2006
  11. Junio C HamanoMay 15, 2006
  12. Shawn PearceMay 15, 2006

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.