Skip to content

Instantly share code, notes, and snippets.

@muminoff
Last active December 14, 2015 21:19
Show Gist options
  • Save muminoff/5150364 to your computer and use it in GitHub Desktop.
Save muminoff/5150364 to your computer and use it in GitHub Desktop.

Browse current directory

$ du -h --max-depth=1
1.6M    ./src
72K     ./bin
520K    ./web
125M    ./vendor
4.1M    ./app
131M    .

Clean .git dirs from vendor

$ find vendor -name .git -type d | xargs rm -rf

Verify the result

$ du -h --max-depth=1
1.6M    ./src
72K     ./bin
520K    ./web
41M     ./vendor
4.1M    ./app
47M     .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment