Created
June 18, 2016 14:19
-
-
Save TangChr/5ee7d445b09f3f80a3f50b5dd53d002d to your computer and use it in GitHub Desktop.
Batch: Delete all Jekyll-related files and folders created during run time
This file contains 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
rmdir _site /s /q | |
rmdir .sass-cache /s /q | |
del Gemfile.lock |
Oh I see I wasn't familiar with Batch script
But I am still curious: why use rmdir? _site contains a lot of subdirectories. So unless you removed all of those preemptively I don't see why you wouldn't use deltree
or something more recursive.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What exactly do each of these commands achieve? I'm confused.
rmdir
is for removing empty directories. But_site
is not empty by default. And what are the /s and /q endings?Thanks.