diff --git a/snippets/git.sh b/snippets/git.sh index 5668b4d..5513ad7 100644 --- a/snippets/git.sh +++ b/snippets/git.sh @@ -36,6 +36,8 @@ git remote | xargs -n 1 git push git lfs pull +# Recursively remove files not under version control. +git clean -df # Get the top-level directory of the current repository. git rev-parse --show-toplevel