Comment by MathiasPius

1 day ago

You can pull another branch without switching first:

  git switch my-test-branch
  ...
  git pull origin main:main
  git rebase main

Nice. That'll make things a bit smoother. Changing branches often trips me up when I would later `git switch -`.