Skip to content

Instantly share code, notes, and snippets.

@ladislas
Last active August 21, 2017 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ladislas/ec95bde9eb5a7935a92ce44d882f380c to your computer and use it in GitHub Desktop.
Save ladislas/ec95bde9eb5a7935a92ce44d882f380c to your computer and use it in GitHub Desktop.
FOLDERS='
demos/LPC21xx
demos/SPC5
demos/STM32
demos/various
doc
ext
os/common/abstractions
os/common/ext
os/ex
testex
tools
'
echo $FOLDERS | xargs -I {} sh -c 'printf "Deleting {}...\n" ; rm -rf {}'
printf "Creating commit with all the deleted files..."
git commit -am "Delete unwanted files"
printf "Creating empty commit to save space..."
git commit --allow-empty -m "Empty commit to save space"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment