diff --git a/pages/git/clean.md b/pages/git/clean.md new file mode 100644 index 0000000..fd96c9c --- /dev/null +++ b/pages/git/clean.md @@ -0,0 +1,17 @@ +--- +tags: + - git + - clean + - gitignore + - delete +--- + +# Delete all files mentioned by `.gitignore` + +This command is useful if you want to reset a repository to it's checked out state. + +```bash +git clean -Xdf +``` + +[Original SO Link](https://unix.stackexchange.com/a/542735)