class Git::Commands::Clean

Remove untracked files from the working tree

Cleans the working tree by recursively removing files that are not under version control. Only files unknown to Git are removed by default; with โ€˜:x` also removes ignored files; with `:X` removes only ignored files.

@example Typical usage

clean = Git::Commands::Clean.new(execution_context)
clean.call(force: true)
clean.call(force: true, d: true)
clean.call(force: 2)
clean.call(dry_run: true)
clean.call(force: true, exclude: '*.log')
clean.call(force: true, X: true)
clean.call(force: true, pathspec: ['tmp/', 'build/'])

@note โ€˜arguments` block audited against git-scm.com/docs/git-clean/2.53.0

@see Git::Commands

@see git-scm.com/docs/git-clean git-clean

@api private