MacBook Pro affichant un éditeur de code

Git doesn’t fetch all branches in remote

Sometimes when you work with git, you don’t find all the remote branches.

Even after using git fetch they do not appear.

fetch git

it is very likely that the origin of the fetch is wrong. We can see, for example, that here only the master branch is updated.

 $ git config --get remote.origin.fetch
'refs/heads/master:refs/remotes/origin/master

To fix it, just use a wildcard in the configuration

git config remote.origin.fetch

Leave a comment