# get

Get a single repository by name or URL. Clones if not present.

```rhai
tree.get(name_or_url: &str) -> GitRepo
```

## Examples

```rhai
let tree = git_tree_new("/tmp/repos");
let repo = tree.get("https://github.com/user/project.git");
print(`Cloned to: ${repo.path()}`);
```

```rhai
let tree = git_tree_new("/tmp/repos");
let repo = tree.get("project");
if repo.has_changes()? {
    print("Has uncommitted changes");
}
```
