git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git git<tab> completes non-existent command `git gitk`

From
Anthony Sottile <asottile@umich.edu>
Date
May 23, 2020, 22:25 UTC
Message-ID
<CA+dzEBnpheB-ZT5+bajKphux-+7gYFx1Msws7mXM=LOJO7pukw@mail.gmail.com>
easiest to reproduce is with docker
```dockerfile
FROM ubuntu:focal
RUN : \
    && apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y
--no-install-recommends \
        bash-completion \
        git \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*
```

```console $ docker run --rm -ti test bash root@23e691ecc7ba:/# [ -f /etc/bash_completion ] && . /etc/bash_completion root@23e691ecc7ba:/# git gitk ```

(I typed git git<tab>)

```console $ git gitk git: 'gitk' is not a git command. See 'git --help'. ```

this is a bit annoying because I have some aliases/commands for git-github-*
the git version I have is 2.25.1:

```console $ git --version git version 2.25.1 ```

Anthony
Next: Matheus Tavares
Message 1 of 4 in “git git<tab> completes non-existent command `git gitk`”
  1. Anthony SottileMay 23, 2020
  2. Matheus TavaresMay 24, 2020
  3. Junio C HamanoMay 25, 2020
  4. Matheus Tavares BernardinoMay 25, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.