git fetch: how to ignore new branches
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Flying Over Ancient Lands
--
Chapters
00:00 Git Fetch: How To Ignore New Branches
00:32 Accepted Answer Score 9
01:16 Thank you
--
Full question
https://superuser.com/questions/175022/g...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#git
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Flying Over Ancient Lands
--
Chapters
00:00 Git Fetch: How To Ignore New Branches
00:32 Accepted Answer Score 9
01:16 Thank you
--
Full question
https://superuser.com/questions/175022/g...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#git
#avk47
ACCEPTED ANSWER
Score 9
You can edit .git/config
and change
fetch = +refs/heads/*:refs/remotes/origin/*
to, for example,
fetch = +refs/heads/master:refs/remotes/origin/master
Also you can do git fetch origin +refs/heads/master:refs/remotes/origin/master
each time instead of just git fetch
You can create fetching script (like "gfm") to avoid inputting that string each time. This way you can use "gfm" to fetch just master and "git fetch" to fetch everything.