How can I pass options to TeamCity's 'git clean' cleaning policy?

In my VCS root configurations I have Clean policy set to "Always". This performs a "git clean". But I want it to do "git clean -fd" instead. Is there a way to pass -fd in, or specify the exact command? I did not see anyting in the documentation about how this can be done.

2 comments

Upon further review it seems git clean is executing with -f -d -x options, so this is no longer an issue for me :)

0

Hello Sahan,

You are right, to remove untracked files git-plugin runs a command 'git clean -d -f -x'.

0

Please sign in to leave a comment.