Replies: 4 comments
-
git clean -xfd or -Xfd. The first removes all files that are git ignored as well as files not yet added. But it does not remove the current changes. The second retains new files not yet added to repo. While an alias to one of these, I would vote for -Xfd, may be useful I see no reason to write anything custom. |
Beta Was this translation helpful? Give feedback.
-
The problem with these commands @jbeeko is that they remove everything independently of if they are the obj or bin folder. For example, if you install your dependencies locally inside your workspace they will also be removed and you will have to re-download/re-install them. This is often the case when working on a web application like when using Fable or even raw JavaScript because It is also important to note that they are |
Beta Was this translation helpful? Give feedback.
-
@MangelMaxime True they will remove everything in .gitignore. I think that is a benefit because when things are going wrong I usually want a reboot back to just my work. But I can see others may not want that. I believe git clean will take patterns so it can target just those directories. You point on git not being universally present is well taken. |
Beta Was this translation helpful? Give feedback.
-
I mean, this issue is "on hold" not because we don't know how to delete the files - this is the easy part. But |
Beta Was this translation helpful? Give feedback.
-
We should have a command that properly cleans bin and obj. Because reasons
Beta Was this translation helpful? Give feedback.
All reactions