On the road again

An example how to use interactive rebase

Lets say we have 2 commits in one repo hence we have a chain:

commit b38b17829ed54785d25ae123b9c6aa598a4d5268
Author: Oleksii Grudev <>
Date:   Wed Jan 23 17:19:41 2019 +0200

    Pin pipeline and heat-templates refspecs
    
    Change-Id: Ifbdbd2f9ba6f7e5ff061f251e936dc81a8f235b6
    Related-PROD: PROD-26631

commit 6a8d9fbf98b6511af88d54e41b2a6ee0addc0334
Author: Oleksii Grudev <>
Date:   Wed Jan 23 17:03:19 2019 +0200

    Add ability to pass heat-templates refspec
    
    The patch adds ability to pass mcp-env/heat-templates
    refspec to mcp-env jobs, e.g. rollout-mcp-env
    
    Change-Id: Ideb08b17f97ed8a16eee448d9d58a08b13a6d008
    Related-PROD: PROD-26631

commit 2fb94fa08b923ac725c830b94486db7445fa1bd4
Merge: b427ef7 76a212a

...

If we need to apply changes in commit 6a8d9fbf98b6511af88d54e41b2a6ee0addc0334, we need to rebase on previous commit

git rebase -i 2fb94fa08b923ac725c830b94486db7445fa1bd4

In the menu you need to write "edit" in front of needed commit in the list, after that you can apply changes on it (git add) and perform git commit --amend.

02-interactive-rebase.png

Once done issue following command:

git rebase --continue

Finally you can issue "git review" command. Answer "yes" to publish the whole chain of commits:

03_interactive_rebase.png

 

 

Add comment