1

I was following along with the Code With Mosh git tutorial, and I inputted git config --help into git bash I got this:

/usr/bin/start: line 8: : command not found

What is going on? I should mention I have a Windows 10 OS. I am new to git.

  • What does running `git var GIT_PAGER` print? – torek Jul 07 '22 at 00:28
  • Are you trying to run `git help --config`? – Vinit Divekar Jul 07 '22 at 00:30
  • @VinitDivekar: `git --help` in general does the same thing as `git help `. In this case it should show the OP the documentation for `git config`, as run through his pager. – torek Jul 07 '22 at 00:31
  • @torek ```git var GIT_PAGER``` prints "less" – dhruvRamaswamy Jul 07 '22 at 00:35
  • @VinitDivekar when I print that I get a list of config settings, I want help on a specific commit – dhruvRamaswamy Jul 07 '22 at 00:36
  • Hm, `less` should not be doing that in general, but see [this related question](https://stackoverflow.com/q/44283733/1256452). Also related: [How to change the browser for accessing git help pages?](https://stackoverflow.com/q/44867986/1256452) It looks like your Git installation is set up to attempt to fire up a browser (perhaps even the deprecated Internet Explorer) when using `git help` and company here. – torek Jul 07 '22 at 00:37
  • @torek, thanks. Wasn't aware. @dhruvRamaswamy, I would first check if the git is installed properly with `git --version` command – Vinit Divekar Jul 07 '22 at 00:37
  • @VinitDivekar the command prints out ```git version 2.35.3.windows.1```, is that the correct version? – dhruvRamaswamy Jul 07 '22 at 00:45
  • @dhruvRamaswamy, git help command is used to get information about _git_ .What is that you are after in you specific commit? – Vinit Divekar Jul 07 '22 at 03:14
  • @vinitDivekar I was trying to find help on the 'config' command – dhruvRamaswamy Jul 07 '22 at 14:15

0 Answers0