DEV Community

Discussion on: 🌳🚀 CS Visualized: Useful Git Commands

ginomempin profile image
Gino Mempin • Edited on

Great visualizations :)

It might be worth noting that git reset does not delete untracked files, even with --hard. It only affects those that are already tracked.

So, for example, some recent commits causes your app to generate some files, then you later reset those commits, it will leave those files as untracked.

For that, you need git clean.