# How to Do Git Subcommand Aliasing

You can map Aviator CLI command as `git` subcommand. In your `.gitconfig`, you can add aliases:

{% code title="\~/.gitconfig" %}

```ini
# Do not forget an exclamation point before av.
[alias]
    sync = !av sync
    tree = !av tree
    pr = !av pr
```

{% endcode %}

With the config above, `git sync` will execute `av sync`.

This utilizes a feature that `git` provides. You can see the details in [<mark style="color:blue;">git-config(1)</mark>](https://git-scm.com/docs/git-config#Documentation/git-config.txt-alias).


---

# Agent Instructions: 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:

```
GET https://docs.aviator.co/aviator-cli/how-to-guides/git-subcommand-aliasing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
