Below is a fix for if your git fetch does not fetch all branches
First run the following command:
$ git config --get remote.origin.fetch
If the value returned is not equal to:
+refs/heads/*:refs/remotes/origin/*
Then run this to set the config:
$ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"