Merging Branches
Command |
Result |
---|---|
git cherry-pick commit |
cherry-picks the specified commit to the current branch |
git merge branch |
merges all commits from the specified branch into the current branch |
git rebase master |
rebase your current branch using master |
git rebase -i master |
interactively combines multiple commits into a single commit and rebases
from master. |
git rebase origin/master |
rebase your current branch using origin/master |
git rebase -i origin/master |
interactively combines multiple commits into a single commit and rebases
from origin/master. |