Compdigitec Labs

« | Home | »

Git refuses to discover new remote branches

By admin | January 23, 2021

In addition to the excellent suggestions at https://stackoverflow.com/questions/1783405/how-do-i-check-out-a-remote-git-branch, take a look in .git/config and make sure fetch is specified to only fetch the master branch:

[remote "origin"]
  url = git@github.com:example/coolproject.git
  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 = git@github.com:example/coolproject.git
  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 | 10 Comments »

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

  1. som777 Says:
    November 12th, 2024 at 15:55

    … [Trackback]

    […] Read More on to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  2. หวยหุ้น แทงง่าย จ่ายจริง อ้างอิจากกราฟ Says:
    November 22nd, 2024 at 21:50

    … [Trackback]

    […] Find More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  3. ตู้แช่ Says:
    November 23rd, 2024 at 23:54

    … [Trackback]

    […] Here you will find 48646 more Information to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  4. ผลิตเสื้อยืด Says:
    November 26th, 2024 at 23:52

    … [Trackback]

    […] Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  5. gambia Says:
    December 5th, 2024 at 13:44

    … [Trackback]

    […] Find More Information here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  6. SHOPEE สล็อต Says:
    December 13th, 2024 at 21:28

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  7. มือใหม่ เว็บไซต์ซื้อหวยออนไลน์ ควรเลือกเล่นหวยแนวไหน Says:
    December 16th, 2024 at 19:29

    … [Trackback]

    […] Find More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  8. ปั่นสล็อต เว็บไหนได้เงินไว แจกโบนัส 100% Says:
    December 19th, 2024 at 03:52

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  9. ทดลองเล่นสล็อต pg Says:
    December 20th, 2024 at 19:52

    … [Trackback]

    […] Here you will find 41897 additional Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

  10. Paket Honeymoon Nusa Penida Says:
    December 20th, 2024 at 23:35

    … [Trackback]

    […] Find More Information here to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]

Comments