How to Do Git Subcommand Aliasing

How to guide for Git Subcommand Aliasing when using StackedPRs CLI.

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

~/.gitconfig
# Do not forget an exclamation point before av.
[alias]
    sync = !av sync
    tree = !av tree
    pr = !av pr

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

This utilizes a feature that git provides. You can see the details in git-config(1).

Last updated

Was this helpful?