Skip to content

Instantly share code, notes, and snippets.

@TangChr
Created June 18, 2016 14:19
Show Gist options
  • Save TangChr/5ee7d445b09f3f80a3f50b5dd53d002d to your computer and use it in GitHub Desktop.
Save TangChr/5ee7d445b09f3f80a3f50b5dd53d002d to your computer and use it in GitHub Desktop.
Batch: Delete all Jekyll-related files and folders created during run time
rmdir _site /s /q
rmdir .sass-cache /s /q
del Gemfile.lock
@haejinjo
Copy link

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.

@haejinjo
Copy link

Oh I see I wasn't familiar with Batch script

@haejinjo
Copy link

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