Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [Guide] How to merge commits into a branch using Git Cherry Pick

    Technical Development
    1
    1
    2419
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wrapper
      wrapper Moderators last edited by wrapper

      Merging commits from one Git branch to another procedure

      Install a mergetool. On Linux, meld:

      sudo apt-get install meld
      

      Configure your mergetool:

      git config --global merge.tool meld
      

      Then, iterate in the following way:

      git cherry-pick ....
      git mergetool
      git cherry-pick --continue
      

      To stop a merge:

      git cherry-pick --abort 
      

      Example commits merge : Feathercoin 0.9.6.2 mergeTest cherry pick commit :

      https://github.com/FeatherCoin/Feathercoin/pull/201/commits/0ba808af8a10c8231490088932baa2d6ae0c7106
      Added man pages for feathercoin, modified icons

      commit 0ba808af8a10c8231490088932baa2d6ae0c7106 @wellenreiter01

      wellenreiter01 committed on 1 Nov 2015

      git cherry-pick 0ba808af8a10c8231490088932baa2d6ae0c7106
      
        error: cherry-pick is not possible because you have unmerged files.
        hint: Fix them up in the work tree, and then use 'git add/rm <file>'
        hint: as appropriate to mark resolution and make a commit.
        fatal: cherry-pick failed    
      
      
      git mergetool
      Merging:
      contrib/debian/manpages/feathercoin.conf.5
      contrib/debian/manpages/feathercoind.1
      contrib/debian/manpages/feathercoin-qt.1
      
      Deleted merge conflict for 'contrib/debian/manpages/feathercoin.conf.5':
        {local}: deleted
        {remote}: created file
      Use (c)reated or (d)eleted file, or (a)bort?
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post