move last two commits onto the tip of another branch
- User
move last two commits onto the tip of another branch
- Assistant
To move the last two commits onto the tip of another branch in Git, you can use the
git cherry-pickcommand. Here’s a step-by-step guide on how to do this:-
Identify the Branches: First, ensure you know the name of the target branch you want to move your commits to. Let's call it
target-branch.
-