how do i merge and get all the histroy from one branch to another code example
Example 1: creating a branch in git
git checkout -b <branch_name>
Example 2: git merge branch to another branch
git checkout targetBranch
git merge sourceBranch
git checkout -b <branch_name>
git checkout targetBranch
git merge sourceBranch