# push

Push changes to the remote repository.

```rhai
repo.push() -> GitRepo
```

## Examples

```rhai
let repo = git_clone("https://github.com/user/project.git");
repo.commit("Update")?.push()?;
print("Changes pushed");
```

```rhai
let tree = git_tree_new("/home/user/repos");
let repo = tree.get("myproject");
if repo.has_changes()? {
    repo.commit("Auto-commit")?.push()?;
}
```
