Clean-up local branches
where remote doesn’t exist
Published in
1 min readApr 23, 2014
Ever wanted to clean-up all those local branches that have been merged into master and removed from remote? Just use this simple command:
git fetch --prune
or,
git fetch -p
From man
After fetching, remove any remote-tracking references that no longer exist on the remote.