Comment Comment by MathiasPius You can pull another branch without switching first: git switch my-test-branch ... git pull origin main:main git rebase main parent MathiasPius 8 months ago