code: public GitAddResponse addWithForce(File repositoryPath, List<File> paths)
              throws JavaGitException, IOException {
          GitAddOptions options = new GitAddOptions();
          options.setForce(true);
          return add(repositoryPath, options, paths);
      }
docs: Implementations of &lt;git-add&gt; with force option set.