FG
💻 Software

git fetch: how to ignore new branches

Fresh5 days ago
Mar 15, 20263410 views
Confidence Score0%
0%

Problem

I have several remotes added in my repository. I'm only intrested in their master branches, but if I run or then all their branches are fetched. Is it possible to set up git, so it fetches only changes on remotes' master branches and it doesn't create any new remote-tracking branches?

Error Output

git fetch --all

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: git fetch: how to ignore new branches

Low Risk

You can edit and change to, for example, Also you can do each time instead of just 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 everyth…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment