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 that do not appear.

fetch git
Publicités

it is very likely that the origin of the fetch is false. 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 correct just use a wildcard in the configuration

git config remote.origin.fetch
Publicités

Leave a Reply