Kaizen Today I Learned by Ville Säävuori

Updating the list of local Git branches from remote

Vscode Git branch dropdown becomes unwieldly fast when not kept up to date often. Here’s how to update the local list of remote branches:

git fetch --prune

git pull --prune

Make this automatic every time you run pull or fetch:

git config remote.origin.prune true

Tagged with ,

Published . Last modified .