Skip to content

Instantly share code, notes, and snippets.

@labbati
Created December 14, 2018 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save labbati/d3eb49b2bfa69cebaa52e9dba31888d7 to your computer and use it in GitHub Desktop.
Save labbati/d3eb49b2bfa69cebaa52e9dba31888d7 to your computer and use it in GitHub Desktop.
List all local branches that have a remote that was there but has been removed.
#!/usr/bin/env bash
git fetch -p && git branch -vv | grep ": gone]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment