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

Get this message when doing a ‘git clean’?

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

Then either set ‘requireForce’ to false in ¬†your .gitconfig or use the -f flag:

http://git-scm.com/docs/git-clean

 

Leave a Reply

Your email address will not be published. Required fields are marked *