<div dir="ltr"><div><div><div>Hi,<br></div>From the looks of that, you were working on the 4.7 branch directly. In that case, it's better to use rebase.<br><br></div>ie. if you checkout -b a new branch, use rebase and merge<br></div><div> If you want to quickly fetch a commit from another branch, use cherry-pick<br></div><div>For example, work on master using checkout-b, rebase, and merge. Later on, use cherry-pick to copy it to 4.7.<br><br><br></div><div>Now, let's see what you did in the specific steps.<br></div><div><div><div><div><br><div><div><br><div class="gmail_quote">On Fri, Mar 20, 2015 at 8:16 AM aga <<a href="mailto:agander93@gmail.com">agander93@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Hi Alvaro<br>
<br>
Thanks for that. What I doing is based on several emails of yours -<br>
[Kmymoney-devel]<br>
Git workflow after backporting to origin/4.6<br>
30-06-2012<br>
<br>
git checkout 4.7<br>
git fetch origin && git reset --hard origin/4.7<br>
git checkout -b backportFixes<br>
(work on the fixes, cherry-pick from other branches, etc.)<br>
<br>
git checkout 4.7<br>
git cherry-pick -x hash (this is my addition)<br>
<br></blockquote><div>If there were multiple commit, cherry picking is not that easy, as you have to do it in the right. It'd be much better to rebase and merge.<br></div><div><br></div><div>However, it cherry picking worked, all that was left to do was pushing. <br><br></div><div>The next steps are redundant and prone to cause unnecessary problems when used together with cherry-pick.<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Once you are done with that, and I think the point where you are at now:<br>
git checkout 4.7<br>
git pull -r origin 4.7<br>
git checkout backportFixes<br>
git rebase 4.7<br>
git checkout 4.7<br>
git merge backportFixes<br>
git push kde:kmymoney 4.7<br>
<br>
</blockquote><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks again<br>
<br>
Allan<br>
<br>
<br>
</blockquote></div></div></div></div></div></div></div></div>