Last active
August 21, 2017 14:29
-
-
Save ladislas/ec95bde9eb5a7935a92ce44d882f380c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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