git fetch origin

I added a branch to a codeline from one machine, made some changes and pushed the changes.
When I tried to access the changes from my machine at home, ‘git branch’ did not show the new branch.
‘git fetch origin’ refetched the repository and I was able to see the new branch and its contents.