Skip to content

Instantly share code, notes, and snippets.

@kwokster10
kwokster10 / ci_commands.md
Last active February 13, 2018 18:55
Helpful CI commands

To delete all merged branches locally other than ones with master and production in name

git branch --merged | egrep -v "(^\*|master|production)" | xargs git branch -D

To remove all docker containers

docker rm $(docker ps -aq)