Fix for git not fetching all branches

Posted on February 26, 2017 by Michael Roma

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/*"
comments powered by Disqus