Skip to content

m git status

Display a single word representing the current git status.

example::

$ m git status
clean

statuses::

unknown
untracked
clean
ahead
behind
staged
dirty
diverged
?

If you want to check for stashed changes, use the --check-stashed flag.

Source code in m/cli/commands/git/status.py
class Arguments(BaseModel):
    """Display a single word representing the current git status.

    example::

        $ m git status
        clean

    statuses::

        unknown
        untracked
        clean
        ahead
        behind
        staged
        dirty
        diverged
        ?

    If you want to check for stashed changes, use the `--check-stashed` flag.
    """

    check_stashed: bool = Arg(
        default=False,
        help='check if there are any stashed changes',
    )

Options

--check-stashed

  • default: false

check if there are any stashed changes