# get_path_reset

Clone a repository, reset local changes, and return its path.

```rhai
tree.get_path_reset(url: &str) -> String
```

## Examples

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

```rhai
let tree = git_tree_new("/tmp/build");
let src = tree.get_path_reset("https://github.com/org/app.git");
chdir(src);
run("make build");
```
