How it works...

Git simply checks the remote-tracking branches under the remote or origin namespace and removes branches that are not found on the remote any more.

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.