Re: git-pull conflict - how to solve it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert P. J. Day wrote:
On Tue, 5 Feb 2008, Peter Teoh wrote:

  
After I issued "git pull" I got the following conflicts:

remote: Counting objects: 3463, done.
remote: Compressing objects: 100% (459/459), done.
Indexing 2612 objects...
remote: Total 2612 (delta 2236), reused 2528 (delta 2152)
 100% (2612/2612) done
Resolving 2236 deltas...
 100% (2236/2236) done
718 objects were added to complete this thin pack.
* refs/remotes/origin/master: fast forward to branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86
  old..new: 795d45b..5329cf8
* refs/remotes/origin/mm: forcing update to non-fast forward branch
'mm' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86
  old...new: b7e245f...1c207e8
Removed Documentation/smp.txt
Removed arch/arm/Kconfig.instrumentation
Removed arch/arm/mach-ixp4xx/dsmg600-power.c
Removed arch/arm/mach-ixp4xx/nas100d-power.c
Removed arch/arm/mach-ixp4xx/nslu2-power.c
Auto-merged arch/x86/Kconfig
Auto-merged arch/x86/mm/ioremap.c
CONFLICT (content): Merge conflict in arch/x86/mm/ioremap.c
Removed drivers/net/mipsnet.h
Removed drivers/pci/pcie/aspm.c
Removed include/linux/aspm.h
Removed kernel/Kconfig.instrumentation
Automatic merge failed; fix conflicts and then commit the result.

I really don't know what happens?   Please help me, thanks.
    

i'm currently up to date WRT git and i haven't seen that kind of
merge conflict.  if all else fails, just remove your entire working
copy (leaving the .git directory where it is) with:

$ rm -rf *

do the pull, then recheck everything out with:

$ git checkout -f

that might be brute force, but it should work.  if you *still* have a
conflict, then you must have made some changes and committed them or
something similar.

rday
--his is the result after I followed what you suggested:
  

git checkout -f
Checking 23398 files out...
 100% (23398/23398) done
git pull==>

Auto-merged arch/x86/kernel/entry_64.S
CONFLICT (content): Merge conflict in arch/x86/kernel/entry_64.S
Automatic merge failed; fix conflicts and then commit the result.

And subsequently I followed all the recommendation given by Linus at:

http://kerneltrap.org/mailarchive/git/2007/2/7/238033

but to no avail.   but now everything is resolved - i just restored back my previously backup of the git clone copy.

Thanks.


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux