Compdigitec Labs

« | Home | »

Git refuses to discover new remote branches

By admin | January 23, 2021

In addition to the excellent suggestions at, take a look in .git/config and make sure fetch is specified to only fetch the master branch:

[remote "origin"]
  url =
  fetch = +refs/heads/master:refs/remotes/origin/master # bad

You’ll want to change the fetch line to fetch all branches instead:

[remote "origin"]
  url =
  fetch = +refs/heads/*:refs/remotes/origin/*

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 2 Comments »

2 Responses to “Git refuses to discover new remote branches”

  1. Exology Says:
    July 4th, 2024 at 18:50

    … [Trackback]

    […] Here you will find 10088 more Information on that Topic: […]

  2. รับจำนำรถใกล้ฉัน Says:
    July 12th, 2024 at 22:33

    … [Trackback]

    […] Read More Info here to that Topic: […]