Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Conflicts updating wp submodule #53

Open
kiosktm opened this issue Apr 8, 2014 · 2 comments
Open

Merge Conflicts updating wp submodule #53

kiosktm opened this issue Apr 8, 2014 · 2 comments

Comments

@kiosktm
Copy link

kiosktm commented Apr 8, 2014

Greetings,

I tried to do a "git pull origin master" from the wp submodule folder and got a log of merge conflicts. As we haven't updated any of the files locally, the source of these conflicts is unclear. Anyone else see this?

@drewhammond
Copy link

I'm somewhat of a git rookie so I don't know what causes the conflicts exactly but for what it's worth git pull origin 3.8-branch works without conflicts.

@vjwilson
Copy link

I tried @drewhammond 's method of specifying the branch in the pull command, but I still got a plethora of merge conflicts.

I tried a bunch of commands but the solution was simple. It turned out that since I hadn't touched the wp submodule since I had initialized it, it was in a "detached" state. Checking out the master branch first allowed for a fast-forward merge:

van@desdemona: wp ((detached from 3.8.2)) $ git co master
Previous HEAD position was 5577e02... Tag 3.8.2
Switched to branch 'master'
Your branch is behind 'origin/master' by 2503 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
van@desdemona: wp (master) $ git pull origin master
From git://github.com/WordPress/WordPress
 * branch            master     -> FETCH_HEAD
Updating 5ca1024..c64402e
Fast-forward
...

Hope this helps other people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants