I am trying to get started with git in a github project. (I have been using CVS, SVN and hg for many years, git is hard to get my head). I follow the instructions as accurately as I can, and simply cannot make it work.
I am cloning my forked project:
git clone git@github.com :davidgiven/linux-allwinner.git
As recommended, I add a remote upstream channel that tracks the project from which one of them branches out:
git remote add upstream https:
I extract from it:
git fetch upstream
It all works great. But a week or so has already passed since I forked the project and changes were made upstream. Therefore, I want to make these changes. I am now in the correct branch --- allwinner-v3.0-android-v2 --- so I am merging from the branch up my branch:
git merge upstream/allwinner-v3.0-android-v2
... and I get merge conflicts.
CONFLICT (add/add): Merge conflict in arch/arm/mach-sun5i/pm/standby/common.h CONFLICT (add/add): Merge conflict in arch/arm/mach-sun5i/pm/standby/Makefile CONFLICT (add/add): Merge conflict in arch/arm/mach-sun5i/pm/standby.S CONFLICT (add/add): Merge conflict in arch/arm/mach-sun5i/pm/Makefile [etc]
Now I have not checked anything; I have not yet started work, and my project is completely untouched, since I forked it. Therefore, there should be no conflict. But there are some; what is happening and how to fix it?
Update:
git show-branch HEAD upstream/allwinner-v3.0-android-v2 shows this, that I have to say I don't understand the word:
! [HEAD] arm: sun3i: add getioaddr macro ! [upstream/allwinner-v3.0-android-v2] arm: sun3i: updated irq handling and machine_desc to 3.0 -- + [upstream/allwinner-v3.0-android-v2] arm: sun3i: updated irq handling and machine_desc to 3.0 + [upstream/allwinner-v3.0-android-v2^] arm: sunxi: renable early_printk in all _defconfig except crane's + [HEAD] arm: sun3i: add getioaddr macro + [HEAD^] arm: sun3i: add dummy machine type
David Given
source share