I have a branch on my remote fork (which is behind my local master) and want to fetch the changes in that repo to my local machine. I do this using:
git fetch origin/branch-name
git checkout origin/branch-name
git switch -c "new-branch"
This does pull in the changes, but since this branch is behind master I cannot rebase onto master.
If I pull from the remote branch I get an Already up to date.
Is it possible to pull these changes from origin/branch-name in a way that allows me to rebase to master later?