fatal: clean.requireForce defaults to true and neither -i, -n, nor -f given; refusing to clean

You have to either set requireForce to false in your .gitconfig or use the -f or -i flag with this command.

  1. git clean -f will force to clean the untracked files even if clean.requireForce is set to true which is default.
  2. git clean -i will give you an interactive way for cleaning each file
  3. git clean -n will just show which files will be removed if you perform git clean.

Reference: https://git-scm.com/docs/git-clean

Leave a Comment

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