When starting to use git, it is common practice to use local copies of branches from remotes which are kept in sync against the remote ones. For instance, here are some workflows that are commonly used following this practice:
create a new feature branch
git switch main
git pull
git switch -c new-feature-branch
rebase on top of the latest changes of main branch
git switch main
git pull
git switch new-feature-branch
git pull -r # this works until we change the upstream branch, of course
rebase on top of the latest changes of main after the upstream is changed
git switch main
git pull
git switch new-feature-branch
git rebase main
You can see the effort of doing the switch/pull every time. Is it possible to avoid keeping the local copy of the branch in sync, or, even better, have no local copy at all?