# commit

Commit changes in the repository.

```rhai
repo.commit(message: &str) -> GitRepo
```

## Examples

```rhai
let repo = git_clone("https://github.com/user/project.git");
file_write(`${repo.path()}/config.txt`, "new content");
repo.commit("Update config")?;
```

```rhai
let tree = git_tree_new("/home/user/repos");
let repo = tree.get("myproject");
repo.commit("Fix bug")?.push()?;
```
