« 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 | 22 Comments »
February 7th, 2022 at 20:45
… [Trackback]
[…] Read More Information here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
March 29th, 2022 at 12:24
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
April 12th, 2022 at 05:25
… [Trackback]
[…] Info to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
May 11th, 2022 at 12:27
… [Trackback]
[…] Find More Info here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
June 3rd, 2022 at 04:59
… [Trackback]
[…] Info to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
June 8th, 2022 at 22:48
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
July 1st, 2022 at 21:09
… [Trackback]
[…] Here you can find 4903 additional Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
July 5th, 2022 at 02:51
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
August 27th, 2022 at 03:35
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
August 30th, 2022 at 19:44
… [Trackback]
[…] Find More on to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
August 31st, 2022 at 10:45
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
September 8th, 2022 at 18:10
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
September 18th, 2022 at 14:22
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
October 2nd, 2022 at 14:19
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
October 28th, 2022 at 08:55
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
November 13th, 2022 at 18:25
… [Trackback]
[…] There you will find 18042 more Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
November 29th, 2022 at 14:22
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
December 24th, 2022 at 13:42
… [Trackback]
[…] Read More Info here to that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 6th, 2023 at 07:51
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 12th, 2023 at 09:07
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 20th, 2023 at 05:03
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]
January 26th, 2023 at 18:45
… [Trackback]
[…] There you will find 96399 additional Information on that Topic: compdigitec.com/labs/2021/01/23/git-refuses-to-discover-new-remote-branches/ […]