Skip to content

Instantly share code, notes, and snippets.

@lzl124631x
Last active November 29, 2018 07:12
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 lzl124631x/10a90b38368542320faeb6595e70473a to your computer and use it in GitHub Desktop.
Save lzl124631x/10a90b38368542320faeb6595e70473a to your computer and use it in GitHub Desktop.
Delete Useless Github Remote Branches
// 1. Go to Github Branches Page
// 2. Open Chrome Dev Tool Console (F12)
// 3. Paste this command into the console and run.
// 4. Paste your clipboard in bash command line and run.
copy('git push origin --delete ' + $$('a.branch-name').map(x => x.textContent).join(' '))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment