I am working in a Typescript monorepo. On top of all the node_modules everywhere, there are also generated files, like copied over tsconfigs etc. I needed to clear all those out because it seemed something was off with dependencies. I just learned about git clean -fdx
, which resets the repo to only the files tracked in git. Pretty neat!
It’s close to what I do with worktrees anyway - at some point I should write about my use of worktrees and maybe publish a couple of my lil custom scripts.