Skip to content

Instantly share code, notes, and snippets.

View ynechaev's full-sized avatar
🏠
Working from home

Yuri ynechaev

🏠
Working from home
View GitHub Profile
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