Skip to content

Instantly share code, notes, and snippets.


Renan Borges renanborgez

View GitHub Profile
renanborgez /
Created Jan 18, 2019 — forked from JeffBelback/
Destroy all Docker Containers and Images
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
View clear-local-branches.txt
## Delete local braches already merged
git fetch --prune && git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
You can’t perform that action at this time.