git checkout a-branch
git fetch origin
git rebase origin/dev
git add . git rebase --continue
git push origin a-branch --force