DEV Community

Discussion on: Two Bash scripts I cannot live without when working with Git

Collapse
pavelloz profile image
Paweł Kowalski

git clean is a very cool thing in general. I use it in npm scripts to clear things before build (build is usually gitignored). No need for additional packages like rimraf (and not every OS has rm)