I have committed some changes in one branch. Now I have to make the same changes in another branch.
Is there a way to get the previous commits to the current branch, so I can directly raise the pull request?
I have committed some changes in one branch. Now I have to make the same changes in another branch.
Is there a way to get the previous commits to the current branch, so I can directly raise the pull request?
Checkout the branch you want to have the commits in. Then merge the branch that has the commits:
git checkout master
git merge fixes
I would give this a read. https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
If you want to just apply selective commits, you should look into the git cherry-pick
command. (http://git-scm.com/docs/git-cherry-pick)