Skip to content

Instantly share code, notes, and snippets.

@nevyn
Created April 18, 2013 18:13
Show Gist options
  • Save nevyn/5414956 to your computer and use it in GitHub Desktop.
Save nevyn/5414956 to your computer and use it in GitHub Desktop.
git-pristine clears out EVERYTHING from your working copy that shouldn't be there: it's like doing a clean checkout.
14:11:19 ~ 🆗 cat bin/git-pristine
#!/bin/bash
git clean -dffx
git submodule foreach --recursive git clean -dffx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment