glab-duo-ask - Man Page

Generate Git commands from natural language.

Synopsis

glab duo ask  [flags]

Description

Generate Git commands from natural language using AI assistance.

Describe what you want to do in plain language, and GitLab Duo (Classic) suggests the appropriate Git commands. You receive both the commands and an explanation.

After you receive the suggested commands, you can run them directly from the CLI. You must confirm each command before it runs.

Use this command to:

Options

--git[=true] Ask a question about Git.

Options Inherited from Parent Commands

-h, --help[=false] Show help for this command.

Example

# Explain how to display the titles of the last 10 commits
$ glab duo ask how to list last 10 commit titles

# Explain how to undo the last commit
$ glab duo ask how do I undo my last commit

# Explain how to display files changed in the last commit
$ glab duo ask show me files changed in the last commit

See Also

glab-duo(1)

Referenced By

glab-duo(1).

Mar 2026 Auto generated by spf13/cobra