* merge help
@ 2013-03-26 22:07 J.V.
2013-03-27 14:10 ` Magnus Bäck
0 siblings, 1 reply; 2+ messages in thread
From: J.V. @ 2013-03-26 22:07 UTC (permalink / raw)
To: git
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?
Question 2)
What is the command to show the difference between the files? (is there
a visual tool that would let me merge)?
Question 3)
What is the command I would type to "accept theirs" and overwrite my local?
After this would I need to $git add & commit & push the file?
If someone could guide me through this initial process, (what is best
recommended it would be most helpful).
thanks
J.V.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: merge help
2013-03-26 22:07 merge help J.V.
@ 2013-03-27 14:10 ` Magnus Bäck
0 siblings, 0 replies; 2+ messages in thread
From: Magnus Bäck @ 2013-03-27 14:10 UTC (permalink / raw)
To: J.V.; +Cc: git
On Tuesday, March 26, 2013 at 18:07 EDT,
"J.V." <jvsrvcs@gmail.com> wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-27 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 22:07 merge help J.V.
2013-03-27 14:10 ` Magnus Bäck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).