threads / discuss / 16061

Can't merge

Subject: Can't merge

## tl;dr

2 messages between Oct 27, 2008 and Oct 27, 2008.

replies: 1people: 2as markdown or json

html-kurs@gmx.de· Oct 27, 2008, 16:52 UTC · lore
Hi,

I've run in trouble when trying to merge a branch: I've got a branch "foo". I checkout master.

> git diff foo 

shows many diffs. But

> git merge foo

says: Already up-to-date.

I'm using version 1.6.0.2
Any idea what I'm doing wrong?

TIA, Martin

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
Rémi Vanicat· Oct 27, 2008, 19:14 UTC · re: html-kurs@gmx.de · lore

Re: Can't merge

html-kurs@gmx.de writes:
Show 15 quoted lines
> Hi,
>
> I've run in trouble when trying to merge a branch:
> I've got a branch "foo".
> I checkout master.
>> git diff foo 
> shows many diffs.
> But 
>> git merge foo
> says:
> Already up-to-date.
>
> I'm using version 1.6.0.2
>
> Any idea what I'm doing wrong?

When git say "Already up-to-date" it tell you that all change introduced in the foo branch are in master. But there could be change in master that are not in foo, making foo and master different. You could try

> gitk foo..master

to see commit that are in master but not in foo and that could introduce the difference between the foo and master branch.

-- 
Rémi Vanicat

← back to recent threads