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

Re: git newbie problems

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 6, 2006, 10:17 UTC
Message-ID
<200612061117.32903.jnareb@gmail.com>
In-Reply-To
<45768FE8.2030202@xs4all.nl>
Han-Wen Nienhuys wrote:
 
Show 9 quoted lines
> Jakub Narebski escreveu:
>
>> Graham Percival wrote:
>>
>>> 84219bb don't have input/templates/ any longer.
>>> fatal: Entry '.gitignore' would be overwritten by merge. Cannot merge.
>>> No merge strategy handled the merge.
>>>
>>> As a git newbie, I'm quite confused.  OK, there's no merge strategy...

There is no merge strategy used, because problem (conflict) doesn't stem from what was committed, but from what was in working directory.

Show 14 quoted lines
>>> so what do I do now?  With cvs, the changes would be dumped into the
>>> file.  I look at the file, found the conflict, and tried it again.  I
>>> got the same error message, and then it occurred to me that although I
>>> changed the files in my ~/usr/src/lilypond, git might be storing these
>>> files somewhere else.
>> 
>> Yes, the git error messages certainly needs to be made more user-friendly.
>> What git says here that one version has '.gitignore' file handled by version
>> control, and second has it outside version control. At least I think what
>> it does.
> 
> Which is actually not true. .gitignore has been in the repo since we
> started using git.  I have also seen this message pop up a few times
> in the beginning, but I can't recall why they happened.

I don't know if git allows to pull into dirty tree with impunity. If I remeber correctly Cogito (alternate UI for git) allows this[*1*], there is currently work on this in git (but it is not as far as I remember in git 1.4.4.1). So another possibility is induced by CVS "update then commit" mentality pulling changes _before_ commiting changes.

If this is the case, committing changes _then_ pulling would solve this problem.

Footnotes: ---------- [*1*] This is a bit error prone.

-- 
Jakub Narebski
Previous: Han-Wen NienhuysNext: Han-Wen Nienhuys
Message 4 of 38 in “git newbie problems”
  1. Graham PercivalDec 6, 2006
  2. Jakub NarebskiDec 6, 2006
  3. Han-Wen NienhuysDec 6, 2006
  4. Jakub NarebskiDec 6, 2006
  5. Han-Wen NienhuysDec 6, 2006
  6. Johannes SchindelinDec 6, 2006
  7. Junio C HamanoDec 6, 2006
  8. Daniel BarkalowDec 6, 2006
  9. Tom PrinceDec 6, 2006
  10. Graham PercivalDec 6, 2006
  11. Han-Wen NienhuysDec 6, 2006
  12. Junio C HamanoDec 6, 2006
  13. Jakub NarebskiDec 6, 2006
  14. Han-Wen NienhuysDec 6, 2006
  15. cvs-migration document: make the need for "push" more obviousJohannes Schindelin, Dec 6, 2006
  16. Jakub NarebskiDec 6, 2006
  17. Johannes SchindelinDec 6, 2006
  18. Jakub NarebskiDec 6, 2006
  19. New users, was Re: [PATCH] cvs-migration document: make the need for "push" more obviousJohannes Schindelin, Dec 6, 2006
  20. J. Bruce FieldsDec 6, 2006
  21. Han-Wen NienhuysDec 6, 2006
  22. J. Bruce FieldsDec 6, 2006
  23. Han-Wen NienhuysDec 6, 2006
  24. Johannes SchindelinDec 6, 2006
  25. J. Bruce FieldsDec 6, 2006
  26. J. Bruce FieldsDec 6, 2006
  27. Junio C HamanoDec 6, 2006
  28. Documentation: reorganize cvs-migration.txtJ. Bruce Fields, Dec 7, 2006
  29. Junio C HamanoDec 7, 2006
  30. J. Bruce FieldsDec 7, 2006
  31. Johannes SchindelinDec 7, 2006
  32. J. Bruce FieldsDec 7, 2006
  33. Johannes SchindelinDec 7, 2006
  34. J. Bruce FieldsDec 8, 2006
  35. Junio C HamanoDec 8, 2006
  36. J. Bruce FieldsDec 9, 2006
  37. Graham PercivalDec 6, 2006
  38. J. Bruce FieldsDec 6, 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.