Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ynechaev/6c0a618466eade87df26 to your computer and use it in GitHub Desktop.
Save ynechaev/6c0a618466eade87df26 to your computer and use it in GitHub Desktop.
for i in `hg branches |grep -v 'default' |grep -v 'develop' |grep inactive |awk 'NF>1{print $(NF-1)}'`; do hg update -r "$i" && hg commit -m "Closed branch" --close-branch; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment