Telling git its ok to remove untracked files [duplicate]

You need git clean but add the -df to enable removing files that are in directories from where you are. Add x to include ignored files.

So to completely clean your working directory leaving only what is in source control, issue this command:

git clean -xdf

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)