git merge dev to feature branch code example Example: merge develop to branch git checkout develop git pull git checkout branch-x git rebase develop