Skip to content

Instantly share code, notes, and snippets.

@ArjunKishore
Created September 9, 2021 02:45
Show Gist options
  • Save ArjunKishore/5e0f9d4dbe64fe1245f1106f333e773d to your computer and use it in GitHub Desktop.
Save ArjunKishore/5e0f9d4dbe64fe1245f1106f333e773d to your computer and use it in GitHub Desktop.
Delete local git branches which are not in remote
git branch --merged origin/develop | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment