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

Re: Wine + GIT

From
Junio C Hamano <junkio@cox.net>
Date
Dec 6, 2005, 02:26 UTC
Message-ID
<7vhd9n7yfl.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<4394F173.6000505@pobox.com>
Jeff Garzik <jgarzik@pobox.com> writes:
Show 5 quoted lines
> 5) never ever do
> 	git-checkout -f HEAD
>
> HEAD should always be a symlink.  'git checkout -f master' is probably 
> what you want.

Correct. "git checkout -f HEAD" is a redundant way to say "I screwed up and would want to revert the mess in my working tree to my branch head". You do not need to say HEAD; "git checkout -f" (or "git reset --hard" if you really want to clean things up) would do.

> 6) For merges with hand-merged conflicts, I could have sworn that either 
> a "git commit -a" or 'git-update-index' + 'git commit' was required. 
> Maybe I'm wrong, or that has changed?

That has not changed. With the recent 0.99.9l change, I suspect that the example on the wiki page (without update-index) would fail to commit -- the index is now left unmerged after a failed automerge.

The paragraph "Once you have finished editting [sic]..." needs to be followed by:

	git-update-index those paths you hand corrected
        git-commit
Previous: Jeff GarzikNext: J. Bruce Fields
Message 3 of 15 in “Wine + GIT”
  1. Mike McCormackDec 5, 2005
  2. Jeff GarzikDec 6, 2005
  3. Junio C HamanoDec 6, 2005
  4. J. Bruce FieldsDec 6, 2005
  5. Junio C HamanoDec 6, 2005
  6. J. Bruce FieldsDec 6, 2005
  7. Jon LoeligerDec 6, 2005
  8. git shorthands (was: Re: Wine + GIT)Andreas Ericsson, Dec 6, 2005
  9. Ben CliffordDec 7, 2005
  10. Jeff GarzikDec 6, 2005
  11. Mike McCormackDec 6, 2005
  12. Jeff GarzikDec 6, 2005
  13. Nick HengeveldDec 6, 2005
  14. Andreas EricssonDec 6, 2005
  15. Marco CostalbaDec 6, 2005

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.