bDraft to cover all issues a developer can meet while working with git and php repositories.

Please add your questions here and we will sort&answer them later in the faq page:

What would be the best way to bring changes in one branch only?

Problem
Solution 1

What would be a better way to do this?

Other Solutions
  git checkout PHP-5.3
  git commit
  git checkout PHP-5.4
  git merge --log --no-ff --strategy=ours PHP-5.3

--- dsp 2012/04/13 14:50

What's the correct way to deal with merge conflicts when merging upwards?

Problem

Let's say I make a change on 5.3, which includes a NEWS entry. The NEWS entry understandably conflicts when merging upwards to 5.4. How do I merge it correctly so that it doesn't cause problems for the next committer?

Furthermore, how do I deal with cases where I don't want a NEWS entry on master at all when merging there?

Solution

Try using Moving to Git FAQ. Another solution would be

  git checkout PHP-5.4
  git merge --no-commit --no-ff --log PHP-5.3
  git show PHP-5.4:NEWS > NEWS # Overview news
  git add NEWS
  git commit

--- dsp 2012/04/13 14:55