« ImageMagick snippet: batch crop, dither, and guillotine | Home | Creating a service to run a systemd-nspawn server »
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 | 48 Comments »

July 30th, 2025 at 05:00
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
July 30th, 2025 at 12:25
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
July 31st, 2025 at 21:14
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
August 4th, 2025 at 20:08
… [Trackback]
[…] Find More on on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
August 17th, 2025 at 19:54
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
September 3rd, 2025 at 01:58
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
September 8th, 2025 at 22:39
Making sure it fetches all branches is key. Sometimes debugging feels like navigating a complex level in a challenging game. Speaking of challenges, have you tried Slope Game lately? It’s a fun way to unwind after a tough coding session. This article helped me so sharing the knowledge.
September 19th, 2025 at 16:17
… [Trackback]
[…] There you will find 8763 more Information to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
September 23rd, 2025 at 20:28
… [Trackback]
[…] Find More here to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
October 4th, 2025 at 07:31
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
October 8th, 2025 at 21:49
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
October 9th, 2025 at 23:23
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
October 31st, 2025 at 23:49
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
November 29th, 2025 at 10:09
… [Trackback]
[…] Find More Info here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 11th, 2025 at 22:27
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 14th, 2025 at 18:34
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 14th, 2025 at 18:52
… [Trackback]
[…] Find More Info here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 16th, 2025 at 18:44
… [Trackback]
[…] Here you will find 70633 more Information to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 17th, 2025 at 18:50
… [Trackback]
[…] Find More on on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 17th, 2025 at 19:45
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 20th, 2025 at 18:44
… [Trackback]
[…] There you can find 25492 additional Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 21st, 2025 at 18:50
… [Trackback]
[…] Find More Information here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 22nd, 2025 at 18:55
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 23rd, 2025 at 18:31
… [Trackback]
[…] Here you will find 40166 more Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 23rd, 2025 at 18:41
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 23rd, 2025 at 19:09
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 25th, 2025 at 18:18
… [Trackback]
[…] There you will find 93026 additional Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 26th, 2025 at 18:31
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 27th, 2025 at 18:35
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 27th, 2025 at 18:42
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 27th, 2025 at 22:16
… [Trackback]
[…] Find More here to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 29th, 2025 at 04:23
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 30th, 2025 at 22:08
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 4th, 2026 at 00:53
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 5th, 2026 at 18:59
… [Trackback]
[…] Read More on on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 9th, 2026 at 18:57
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 11th, 2026 at 03:37
… [Trackback]
[…] There you will find 53163 more Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 12th, 2026 at 18:37
… [Trackback]
[…] Here you will find 46382 more Info to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 13th, 2026 at 05:38
… [Trackback]
[…] Read More Info here to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 13th, 2026 at 18:57
… [Trackback]
[…] Here you can find 51485 additional Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 16th, 2026 at 18:53
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 19th, 2026 at 18:28
… [Trackback]
[…] Find More Info here to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 19th, 2026 at 18:51
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 20th, 2026 at 18:18
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 27th, 2026 at 18:29
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 28th, 2026 at 18:28
… [Trackback]
[…] There you will find 64006 additional Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 29th, 2026 at 18:33
… [Trackback]
[…] Read More Information here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 30th, 2026 at 09:28
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]