Skip to content

Instantly share code, notes, and snippets.

@etrikp
Created October 23, 2014 17:09
Show Gist options
  • Save etrikp/8beeea21ec6a4fb8c184 to your computer and use it in GitHub Desktop.
Save etrikp/8beeea21ec6a4fb8c184 to your computer and use it in GitHub Desktop.
private void cleanUnversionedFiles(File workingDir) {
String[] args = new String[]{"clean", "-dff"};
CommandLine gitCmd = git().withArgs(args).withWorkingDir(workingDir);
runOrBomb(gitCmd);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment