Answered
When I run the git branch -a
command on my machine, it lists all the branches in the local version of my repository.
But, this doesn't match what's in the remote repository.
How can I have the branches in my local repository match what's in the remote repository?
You can use fetch
:
git fetch origin
When that's done, you can list all the local branches:
git branch -a
You should see all the remote branches listed in the output.
This fetches all remote branches:
git fetch --all
And this updates all the remote branches on your local machine:
git pull --all
Update information about the remote branches on your local computer:
git fetch --all
Update information about the remote branches on your local computer and update local branches:
git pull --all