threads / discuss / 55085

The error subcommand given by git tab completion.

Subject: The error subcommand given by git tab completion.

## tl;dr

4 messages between Feb 1, 2021 and Feb 2, 2021.

replies: 3people: 3as markdown or json

Hongyi Zhao· Feb 1, 2021, 15:15 UTC · lore
On Ubuntu 20.04, the `git TAB' will give me the following available subcommands:

$ git TAB add deborig merge rm am describe mergetool send-email apply diff mv shortlog archive difftool notes show bisect fetch pull show-branch blame format-patch push sparse-checkout branch fsck range-diff stage bundle gc rebase stash checkout gitk reflog status cherry grep remote submodule cherry-pick gui repack switch citool help replace tag clean init request-pull whatchanged clone instaweb reset worktree commit latexdiff restore config log revert

Then I try the following:

$ git gui git: 'gui' is not a git command. See 'git --help'.

The most similar commands are
    gc
    grep
    init
    pull
    push
The git version is shown as below:

$ git --version git version 2.25.1

As you can see, gui is among the auto-completed subcommands list, but it can be run like the manner of other subcommands. Any hints for this problem?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
胡哲宁· Feb 1, 2021, 16:18 UTC · re: Hongyi Zhao · lore

Re: The error subcommand given by git tab completion.

git gui works normally for me in arch. You should go to install some dependent commands.

Hongyi Zhao <hongyi.zhao@gmail.com> 于2021年2月1日周一 下午11:19写道:
Show 48 quoted lines
>
> On Ubuntu 20.04, the `git TAB' will give me the following available subcommands:
>
> $ git TAB
> add               deborig           merge             rm
> am                describe          mergetool         send-email
> apply             diff              mv                shortlog
> archive           difftool          notes             show
> bisect            fetch             pull              show-branch
> blame             format-patch      push              sparse-checkout
> branch            fsck              range-diff        stage
> bundle            gc                rebase            stash
> checkout          gitk              reflog            status
> cherry            grep              remote            submodule
> cherry-pick       gui               repack            switch
> citool            help              replace           tag
> clean             init              request-pull      whatchanged
> clone             instaweb          reset             worktree
> commit            latexdiff         restore
> config            log               revert
>
> Then I try the following:
>
> $ git gui
> git: 'gui' is not a git command. See 'git --help'.
>
> The most similar commands are
>     gc
>     grep
>     init
>     pull
>     push
>
> The git version is shown as below:
>
> $ git --version
> git version 2.25.1
>
> As you can see, gui is among the auto-completed subcommands list, but
> it can be run like the manner of other subcommands. Any hints for this
> problem?
>
> Regards
> --
> Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
> Theory and Simulation of Materials
> Hebei Polytechnic University of Science and Technology engineering
> NO. 552 North Gangtie Road, Xingtai, China
Pratyush Yadav· Feb 1, 2021, 16:41 UTC · re: Hongyi Zhao · lore

Re: The error subcommand given by git tab completion.

On 01/02/21 11:15PM, Hongyi Zhao wrote:
Show 40 quoted lines
> On Ubuntu 20.04, the `git TAB' will give me the following available subcommands:
> 
> $ git TAB
> add               deborig           merge             rm
> am                describe          mergetool         send-email
> apply             diff              mv                shortlog
> archive           difftool          notes             show
> bisect            fetch             pull              show-branch
> blame             format-patch      push              sparse-checkout
> branch            fsck              range-diff        stage
> bundle            gc                rebase            stash
> checkout          gitk              reflog            status
> cherry            grep              remote            submodule
> cherry-pick       gui               repack            switch
> citool            help              replace           tag
> clean             init              request-pull      whatchanged
> clone             instaweb          reset             worktree
> commit            latexdiff         restore
> config            log               revert
> 
> Then I try the following:
> 
> $ git gui
> git: 'gui' is not a git command. See 'git --help'.
> 
> The most similar commands are
>     gc
>     grep
>     init
>     pull
>     push
> 
> The git version is shown as below:
> 
> $ git --version
> git version 2.25.1
> 
> As you can see, gui is among the auto-completed subcommands list, but
> it can be run like the manner of other subcommands. Any hints for this
> problem?
Do you have git-gui installed? Some distros (like Ubuntu IIRC) don't 
ship git-gui by default and you have to install it separately.
 
Show 6 quoted lines
> Regards
> -- 
> Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
> Theory and Simulation of Materials
> Hebei Polytechnic University of Science and Technology engineering
> NO. 552 North Gangtie Road, Xingtai, China
-- 
Regards,
Pratyush Yadav
Hongyi Zhao· Feb 2, 2021, 02:36 UTC · re: Pratyush Yadav · lore

Re: The error subcommand given by git tab completion.

On Tue, Feb 2, 2021 at 12:42 AM Pratyush Yadav <me@yadavpratyush.com> wrote:
Show 45 quoted lines
>
> On 01/02/21 11:15PM, Hongyi Zhao wrote:
> > On Ubuntu 20.04, the `git TAB' will give me the following available subcommands:
> >
> > $ git TAB
> > add               deborig           merge             rm
> > am                describe          mergetool         send-email
> > apply             diff              mv                shortlog
> > archive           difftool          notes             show
> > bisect            fetch             pull              show-branch
> > blame             format-patch      push              sparse-checkout
> > branch            fsck              range-diff        stage
> > bundle            gc                rebase            stash
> > checkout          gitk              reflog            status
> > cherry            grep              remote            submodule
> > cherry-pick       gui               repack            switch
> > citool            help              replace           tag
> > clean             init              request-pull      whatchanged
> > clone             instaweb          reset             worktree
> > commit            latexdiff         restore
> > config            log               revert
> >
> > Then I try the following:
> >
> > $ git gui
> > git: 'gui' is not a git command. See 'git --help'.
> >
> > The most similar commands are
> >     gc
> >     grep
> >     init
> >     pull
> >     push
> >
> > The git version is shown as below:
> >
> > $ git --version
> > git version 2.25.1
> >
> > As you can see, gui is among the auto-completed subcommands list, but
> > it can be run like the manner of other subcommands. Any hints for this
> > problem?
>
> Do you have git-gui installed? Some distros (like Ubuntu IIRC) don't
> ship git-gui by default and you have to install it separately.
Thanks a lot for your notes. The following command fixes this problem:
$ sudo apt-get install git-gui
Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

← back to recent threads