Skip to content

Instantly share code, notes, and snippets.

💻
Coding

Renan Borges renanborgez

View GitHub Profile
@renanborgez
renanborgez / docker-destroy-all.sh
Created Jan 18, 2019 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
View docker-destroy-all.sh
#!/bin/bash
# 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.