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

Re: merge help

From
MBMagnus Bäck <baeck@google.com>
Date
Mar 27, 2013, 14:10 UTC
Message-ID
<20130327141039.GA11161@google.com>
In-Reply-To
<51521C1B.3080307@gmail.com>
On Tuesday, March 26, 2013 at 18:07 EDT,
     "J.V." <jvsrvcs@gmail.com> wrote:
Show 20 quoted lines
> I have a branch for which I have made 0 (nada) changes.  I did the
> following:
> 
> $git pull --rebase --no-stat -v --progress origin mybranch
> 
> I get the following
> 
> U       java/Profile.java
> Pull is not possible because you have unmerged files.
> Please, fix them up in the work tree, and then use 'git add/rm <file>'
> as appropriate to mark resolution, or use 'git commit -a'.
> ----------   (there is no local master branch), because of the
> conflict I was put on (no branch)
> * (no branch)
>   branch1
>   dev
>   tmpWork
> 
> Question 1)
> Why did I get a merge conflict if I have not changed any files?

The error message indicates that you already had a pending merge conflict when you initiated the pull. Why you had that is impossible to tell.

> Question 2)
> What is the command to show the difference between the files? (is
> there a visual tool that would let me merge)?
You're looking for this form of "git diff":
       git diff [options] <commit> <commit> [--] [<path>...]
Example:
       git diff origin/master HEAD -- file.c file.h

There are many graphical diff and merge tools that you can configure for use with Git, e.g. kdiff3 and meld. See git-difftool(1) and git-mergetool(1).

[...]
-- 
Magnus Bäck
baeck@google.com
Previous: J.V.
Message 2 of 2 in “merge help”
  1. J.V.Mar 26, 2013
  2. Magnus BäckMar 27, 2013

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.