> For the complete documentation index, see [llms.txt](https://docs.aviator.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aviator.co/aviator-cli/manpages/av-commit-1.md).

# av-commit-create(1) in CL

### NAME

av-commit - Record changes to the repository with commits

### SYNOPSIS

```synopsis
av commit [-m <msg>| --message=<msg>] [-a | --all] [--amend] [--edit]
    [-b | --branch] [-A | --all-changes] [--branch-name <name>]
    [--parent <parent_branch>]
```

### DESCRIPTION

Create a new commit containing the current contents of the index and the given log message describing the changes, then run **av restack** on all subsequent child branches with the new commit.

Previous to running **av commit**, add changes to the index via git-add(1) to incrementally "add" changes to the index.

### OPTIONS

`-m <msg>, --message=<msg>` : Use the given `<msg>` as the commit message.

`-a, --all` : Automatically stage modified/deleted files, but new files you have not told Git about are not affected. (Same as git commit --all)

`-A, --all-changes` : Automatically stage all files, including untracked files

`--amend` : Amend the last commit, using the same message as last commit by default

`--edit` : When amending a commit, open the default git `$EDITOR` for modifying the commit message

`-b, --branch` : Create a new branch with an automatically generated name and commit to it

`--branch-name <name>` : Create a new branch with the given name and commit to it

`--parent <parent_branch>` : Instead of creating a new branch from current branch, create it from specified `<parent_branch>`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.aviator.co/aviator-cli/manpages/av-commit-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
