Skip to content

Instantly share code, notes, and snippets.

View andrewmmc's full-sized avatar

Andrew Mok andrewmmc

View GitHub Profile
@andrewmmc
andrewmmc / mysql-cheatsheet.md
Last active January 8, 2018 08:22 — forked from hofmannsven/README.md
[MySQL] Command Line Cheatsheet
@andrewmmc
andrewmmc / docker-cleanup-resources.md
Last active January 8, 2018 07:46 — forked from bastman/docker-cleanup-resources.md
[Docker] Cleanup guide: containers, images, volumes, networks

Docker - How to cleanup unused resources

delete orphaned volumes in Docker 1.9 and up

$ docker volume prune

delete volumes

Go to Bitbucket and create a new repository (its better to have an empty repo)
git clone git@bitbucket.org:abc/myforkedrepo.git
cd myforkedrepo
Now add Github repo as a new remote in Bitbucket called "sync"
git remote add sync git@github.com:def/originalrepo.git
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"
git remote -v