git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* The error subcommand given by git tab completion.
@ 2021-02-01 15:15 Hongyi Zhao
  2021-02-01 16:18 ` 胡哲宁
  2021-02-01 16:41 ` Pratyush Yadav
  0 siblings, 2 replies; 4+ messages in thread
From: Hongyi Zhao @ 2021-02-01 15:15 UTC (permalink / raw)
  To: Git List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: The error subcommand given by git tab completion.
  2021-02-01 15:15 The error subcommand given by git tab completion Hongyi Zhao
@ 2021-02-01 16:18 ` 胡哲宁
  2021-02-01 16:41 ` Pratyush Yadav
  1 sibling, 0 replies; 4+ messages in thread
From: 胡哲宁 @ 2021-02-01 16:18 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Git List

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写道:
>
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: The error subcommand given by git tab completion.
  2021-02-01 15:15 The error subcommand given by git tab completion Hongyi Zhao
  2021-02-01 16:18 ` 胡哲宁
@ 2021-02-01 16:41 ` Pratyush Yadav
  2021-02-02  2:36   ` Hongyi Zhao
  1 sibling, 1 reply; 4+ messages in thread
From: Pratyush Yadav @ 2021-02-01 16:41 UTC (permalink / raw)
  To: Hongyi Zhao; +Cc: Git List

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.
 
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: The error subcommand given by git tab completion.
  2021-02-01 16:41 ` Pratyush Yadav
@ 2021-02-02  2:36   ` Hongyi Zhao
  0 siblings, 0 replies; 4+ messages in thread
From: Hongyi Zhao @ 2021-02-02  2:36 UTC (permalink / raw)
  To: Pratyush Yadav; +Cc: Git List

On Tue, Feb 2, 2021 at 12:42 AM Pratyush Yadav <me@yadavpratyush.com> wrote:
>
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-02  2:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 15:15 The error subcommand given by git tab completion Hongyi Zhao
2021-02-01 16:18 ` 胡哲宁
2021-02-01 16:41 ` Pratyush Yadav
2021-02-02  2:36   ` Hongyi Zhao

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).