a.lang" class="external-link">IllegalStateException</a>,
org.eclipse.jgit.api.errors.GitAPIException</span></div>
<div class="block">Initialization of a new repository</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>localPath</code> - new repository path</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code> - if the repository cannot be created<