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

Re: git pull (Re: need advice on usage patterns)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 26, 2010, 20:06 UTC
Message-ID
<20100726200613.GB1451@burratino>
In-Reply-To
<201007260916.27306.trast@student.ethz.ch>
Thomas Rast wrote:
> In my ears, "a `git pull` is..." sounds weird.  I would remove the
> 'a'.
Good idea.
> Jonathan Nieder wrote:
Show 7 quoted lines
>> -*Warning*: Running 'git pull' (actually, the underlying 'git merge')
>> -with uncommitted changes is discouraged: while possible, it leaves you
>> -in a state that is hard to back out of in the case of a conflict.
>[...]
>> +See linkgit:git-merge[1] for details, including how conflicts
>> +are presented and handled.  To cancel a conflicting merge,
>> +use `git reset --merge`.
[...]
Show 6 quoted lines
>                       Or worse, verify that their git-reset has
> --merge by a quick test (1b5b465 is in 1.6.2) but then find that it
> does not help with backing out of a merge (e11d7b5 is only in 1.7.0!).
> 
> Then again, who reads these manpages anyway?  And we shouldn't let old
> versions get in the way of having consistent and up-to-date docs.  So,
Agh, surely we can do better.  Maybe:
	See linkgit:git-merge[1] for details, including how conflicts
	are presented and handled.
	ifdef::stalenotes[]
	In git 1.7.0 or later, to cancel a conflicting merge, use
	`git reset --merge`.
	*Warning*: In older versions of git, running 'git pull'
	with uncommited changes is discouraged: while possible,
	it leaves you in a state that may be hard to back out of
	in the case of a conflict.
	else::stalenotes[]
	To cancel a conflicting merge, use `git reset --merge`.
	endif::stalenotes[]
with the appropriate corresponding change to todo:dodoc.sh.
Previous: Thomas RastNext: Thomas Rast
Message 4 of 8 in “need advice on usage patterns”
  1. Geoff RussellJul 26, 2010
  2. git pull (Re: need advice on usage patterns)Jonathan Nieder, Jul 26, 2010
  3. Thomas RastJul 26, 2010
  4. Jonathan NiederJul 26, 2010
  5. Thomas RastJul 27, 2010
  6. Ævar Arnfjörð BjarmasonJul 26, 2010
  7. Geoff RussellJul 26, 2010
  8. Jonathan NiederJul 26, 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.