Local branch checked out needs to match wordpress_sites: branch:?

Let’s say I have multiple staging sites: staging2, staging3.

The git branch for staging2 might be “blueheader”. And for staging3, let’s say “greenheader”.

If I go to deploy staging3, then my local branch “greenheader” would need to be checked out. If blueheader is checked out, I’d have issues.

Does this make sense? I was under the impression that deploys pull code from the remote repositories and my local git wouldn’t matter. I’m just trying to understand this better. Thanks for any advice.