I have 2 branches: dev and master.
I have commits in dev like this:
Commits in master like this:
c3 fix a bug.
Now, I want to merge commit
c3 that fix the bug to the master branch, but I do not want to merge all the commits (e.g.
How to merge these specific commits from a branch to another branch?
For this purpose, the command git cherry-pick is very useful.
git cherry-pick c2 git cherry-pick c3
Of course, you should merge some commits when it is needed and resolve the conflicts.