| ms.date | 10/19/2022 |
|---|---|
| ms.topic | include |
| msservice | azure-devops-repos |
| ms.subservice | azure-devops-repos-git |
From the Git menu, choose Git > Settings and then select the Git Global Settings view. That view contains the Prune remote branches during fetch option for the current user.
:::image type="content" source="../media/git-config/visual-studio-2019/git-experience/prune-setting.png" alt-text="Screenshot of the Prune remote branches during fetch setting in Git Global Settings in the Options dialog of Visual Studio." lightbox="../media/git-config/visual-studio-2019/git-experience/prune-setting-lrg.png":::
Or, choose Git Repository Settings > General to edit the Prune remote branches during fetch setting for the current Visual Studio project repo.
Valid values are:
True(recommended)FalseUnset(default)