Skip to content

Instantly share code, notes, and snippets.

Coffee lover 🤟🏽

Renan Borges renanborgez

Coffee lover 🤟🏽
View GitHub Profile

Keybase proof

I hereby claim:

  • I am renanborgez on github.
  • I am renanborgez ( on keybase.
  • I have a public key ASC9Sn3-xyCSjcsEBxedYMY0MEXYpOBSoxG1GJquLI8nGAo

To claim this, I am signing this object:

renanborgez /
Last active Jun 21, 2021 — forked from JeffBelback/
Destroy all Docker Containers and Images
# Stop all containers
docker stop $(docker ps -a -q) -f
# Delete all containers
docker rm $(docker ps -a -q) -f
# Delete all images
docker rmi $(docker images -q) -f
# Delete all volumes
docker system prune
View clear-local-branches.txt
## Delete local branches already merged
git fetch --prune && git branch --merged | egrep -v "(^\*|master|develop|main)" | xargs git branch -d
## Delete local branches (with force)
git fetch --prune && git branch | egrep -v "(^\*|master|develop|main)" | xargs git branch -d -f