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

Re: git pull suggestion

From
AAghiles <aghilesk@gmail.com>
Date
Apr 11, 2010, 06:01 UTC
Message-ID
<m2v3abd05a91004102301i95bf7091ib2bd9da5e8a208c1@mail.gmail.com>
In-Reply-To
<20100410043535.GA22481@coredump.intra.peff.net>
King <peff@peff.net> writes:
Show 10 quoted lines
> I think we would do better to tell the user about stash there, so they
> can do it themselves. Then they know where their changes went and how to
> get them back. Since v1.6.5.5, this error message now says:
>
>  Your local changes to '%s' would be overwritten by merge.  Aborting.
>  Please, commit your changes or stash them before you can merge.
>
> What version of git are you using? If you (or others you are helping)
> saw that message and it wasn't helpful, do you have any suggestions for
> how to improve it?

Yes we have the latest version and we do see this message. This helps a bit. Although for people used to CVS/CVN the "stash" is yet another thing to learn. There is also a high probability for new users to see this message very early when using git and the question is always the same: why can't git just merge with my files and show me the conflict?

(There was also some usability issues with the "stash", I remember people loosing _untracked_ files but I am not sure if that was PEBKAC. First versions of stash had a very friendly syntax that punished you by obliterating your files if you made a typo and some are still traumatized.)

Simply put: in git, your working directory is a second class citizen and git doesn't want to deal with it. Fundamentally, this is in a collision course with what some users think about their work in progress.

I started a similar discussion had a couple years ago: http://lists-archives.org/git/635926-git-pull-opinion.html

Back then, I was certain that 'git pull' should have an option to mix with a dirty tree but now, after a couple years of using the tool, I am not certain anymore. I am just reporting the biggest frustrations I see with new users.

Thanks,
  -- aghiles
Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 15 in “git pull suggestion”
  1. AghilesApr 7, 2010
  2. Thomas RastApr 8, 2010
  3. AghilesApr 8, 2010
  4. Nicolas SebrechtApr 8, 2010
  5. AghilesApr 9, 2010
  6. Jeff KingApr 9, 2010
  7. AghilesApr 9, 2010
  8. Jeff KingApr 10, 2010
  9. Junio C HamanoApr 10, 2010
  10. AghilesApr 11, 2010
  11. Junio C HamanoApr 11, 2010
  12. Matthieu MoyApr 11, 2010
  13. AghilesApr 12, 2010
  14. Junio C HamanoApr 12, 2010
  15. AghilesApr 9, 2010

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.