# wss-starting-point is the SHA1/branch immediately before the first commit to rebasegit branch wss-to-rebase wssgit rebase --onto v2.1 wss-starting-point wss-to-rebasegit checkout v2.1git merge wss-to-rebase
git checkout {SOURCE_BRANCH} # switch to Source branch.git checkout {COMMIT_HASH} # go back to the desired commit.git checkout -b {temp_branch} # create a new temporary branch from {COMMIT_HASH} snapshot.git checkout {TARGET_BRANCH} # switch to Target branch.git merge {temp_branch} # merge code to your Target branch.git branch -d {temp_branch} # delete the temp branch.