Created
October 9, 2017 00:22
-
-
Save agc93/3373ed41a3b9e21c8dd679414f2caf50 to your computer and use it in GitHub Desktop.
Script used for demos and live coding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is pretty trimmed down, but is the basic idea, at least | |
docker ps -a -q -f status=exited | xargs -r docker rm | |
git reset --hard | |
git checkout stage-$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment