git pull –rebase” leads to “Cannot rebase onto multiple branches

Try specifying exactly what remote branch you want to pull:

git pull --rebase origin branch

Alternatively you can also git fetch all changes from the remote repository first, and then rebase manually:

git rebase origin/branch

Leave a Comment