Should 'git fetch' retrieve the same metadata about remote branches in all instances?
If I run ...
git fetch
git branch -r
... on several servers (environments) that have the same remote origin, should the output be the same? I'm asking because it's not the same, and I don't know why. It's close, but not identical. I'm trying to get all environments synced with regard to what branches exist on the remote origin. In one environment, 'git branch -r' displays a branch that (I think) no longer exists on the remote origin.
Why aren't they the same?
Which output from 'git branch -r' should I believe?
How do I get the metadata about remote branches synced?
For the record, I also tried ...
git fetch origin
git branch -r
... and that didn't help. I'm not sure if adding 'origin' to the fetch matters in this situation. I'm a git newbie.
Many thanks,
David