Skip to content

Instantly share code, notes, and snippets.

@kwokster10
kwokster10 / ci_commands.md
Last active Feb 13, 2018
Helpful CI commands
View ci_commands.md

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)