I will switch to branch (branch1) in git and I have made several commits in this branch. And now I am switching to another branch (branch2), how can I combine 1 (the last in branch1) with this new branch (branch2)?
If I do "git merge branch1" when I am in branch2, I will merge all the commits that I made in branch1. I do not want me to need only the latter.
Thanks.
source share