<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [git-documentdb](./git-documentdb.md) &gt; [GitDocumentDB](./git-documentdb.gitdocumentdb.md) &gt; [open](./git-documentdb.gitdocumentdb.open.md)

## GitDocumentDB.open() method

Open an existing repository

<b>Signature:</b>

```typescript
open(): Promise<DatabaseInfo>;
```
<b>Returns:</b>

Promise&lt;[DatabaseInfo](./git-documentdb.databaseinfo.md)<!-- -->&gt;

Database information

## Remarks

- GitDocumentDB can load a git repository that is not created by the git-documentdb module. However, correct behavior is not guaranteed.

