cherry pick all commits from branch code example

Example 1: git cherry pick commit

# from the  branch you want to apply changes

# it will bring all commit changes but also stage them
git cherry-pick <commit-hash> 

# it will bring all commit changes but leave them unstaged

git cherry-pick -n <commit-hash> #OR
git cherry-pick --no-commit <commit-hash>

Example 2: git cherry pick many commits

# A and B are commits
# A is older than B

git cherry-pick A^..B

# to ignore A itself, run:

git cherry-pick A..B

Example 3: cherry pick

$ git cherry-pick 93ae442