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

Re: Expected Behavior?

From
Junio C Hamano <junkio@cox.net>
Date
Nov 7, 2005, 02:01 UTC
Message-ID
<7vd5ldusg7.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<E1EYsny-0004hq-IW@jdl.com>
Jon Loeliger <jdl@freescale.com> writes:
Show 9 quoted lines
>     git checkout -b dev
>
>     echo "More for file1" >> file1
>     rm -f file2
>     echo "Another file!" > file3
>
>     git update-index file1
>     git update-index --force-remove file2
>     git add file3

You do not have file2 in the working tree, so regular --remove would do.

	git-update-index --add --remove file1 file2 file3
>     git merge "Grab dev stuff" master dev

This is good. We used to use (and the tutorial only talks about) git-resolve to do this step, like this:

	git-resolve master dev 'Merge dev branch'

And I've kept using git-resolve myself; not that I do not trust git-merge but purely from inertia, although I was the one who did 'git merge' ;-). Maybe I should first update the tutorial to use git-merge instead of git-resolve.

It appears that as the everyday workhorse, using Daniel's git-merge-resolve is stable through git-merge have proven stable enough. So here is a question. Do people mind if 'git-resolve' and 'git-octopus' are dropped before 1.0? This means 2 less programs in your /usr/bin ;-).

Previous: Junio C Hamano
Message 3 of 3 in “Expected Behavior?”
  1. Jon LoeligerNov 6, 2005
  2. Junio C HamanoNov 7, 2005
  3. Junio C HamanoNov 7, 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.