Answers: <p>This is not the default behavior of <code>git</code> so you have made some local config change to cause this to happen.  Look in your <code>~/.gitconfig</code> to see if there's anything that doesn't make sense to you.  Try commenting it out.  The <code>core.pager</code> setting is one of the first things I would check.  <a href="https://stackoverflow.com/q/2183900/2002471">This stackoverflow question</a> has a variety of options for dealing with this sort of thing.</p>
  <h2>update 1</h2>
  <p>I haven't tried to get this sort of thing to work, but according to <a href="https://git-scm.com/docs/git-help#_configuration_variables" rel="nofollow noreferrer">the docs</a> you can also specify a <code>man.viewer</code> to define the program that is going to run.  Do you get any errors if you try <code>git help -w reset</code>?</p>
  <p>One work around would be to get the help to show up in the terminal by using <code>git help -m reset</code>.  By using the <code>help</code> subcommand instead of <code>subcommand --help</code> you can specify whether you want it to try man, info, or web.</p>
  
Answers: CC BY-SA 4.0
Answers: 2020-12-31T04:17:00.367Z
Answers: Also check what `git` is: `type -a git`
Answers: glenn jackman
Answers: CC BY-SA 4.0
Answers: 2020-12-31T03:43:48.590Z
Answers: 2021-01-02T15:17:41.437Z
Answers: 2021-01-02T15:17:41.437Z
Answers: chicks
Answers: <p>Please check this out to reset your git config setting</p>
  <p><a href="https://stackoverflow.com/questions/35853986/easiest-way-to-reset-git-config-file">https://stackoverflow.com/questions/35853986/easiest-way-to-reset-git-config-file</a></p>
  <p>second thing, if you want output of help then you can use the &quot;git reset -h&quot; command which shows you minimal option of usage in your bash terminal whereas &quot;git reset --help&quot; command will be direct you to html format which is more descriptive explanation of command.</p>
  <p>I hope this will help you.</p>
  
Answers: CC BY-SA 4.0
Answers: 2021-01-02T20:07:07.567Z
Answers: 2021-01-02T20:07:07.567Z
Answers: Bhargav Lalaji
Body: <p>When I type <code>git reset --help</code> I don't get output in the bash terminal, but a new tab opens in my code editor to reveal some dense HTML.  How can I change Git's behavior to display the help message in the bash terminal?  I'm not sure how to fix this.</p>
  <p><strong>Update:</strong></p>
  <p>.gitconfig file:</p>
  <pre><code>[core]
      editor = 'C:\\Program Files\\Sublime Text 3\\sublime_text.exe' -w
  [user]
      name = name
      email = 'email
      name = 'name
  </code></pre>
  <pre><code>$ type -a git
  git is /mingw64/bin/git
  git is /mingw64/bin/git
  git is /cmd/git
  </code></pre>
  <p><strong>Update 2:</strong></p>
  <p>It looks like <code>help.format</code> is set to html, but after my user.name and other info, <code>help.format</code> is set to web (I did this).  I tried setting the browser using multiple browser names, but git fails to launch the help command in the browser and still opens in my code editor.</p>
  <pre><code>$ git config -l
  core.symlinks=false
  core.autocrlf=true
  core.fscache=true
  color.interactive=true
  help.format=html
  user.name=name
  help.format=web
  
  $ git reset --help
  git config option web.browser set to unknown browser: edge
  Resetting to default...
  </code></pre>
  
Comments: CC BY-SA 4.0
Comments: 2021-01-02T15:18:58.617Z
Comments: Hi Craig, Welcome to DevOps.SE.  Thanks for the helpful updates to your question.  I've tried extending my answer in a useful direction.
Comments: chicks
Tags: <git><bash><versioning>
Title: Command "git [command] --help" opens as HTML in my code editor - no output to terminal. How do I revert to default behavior?
UserDisplayName: Craig
ThreadText: # Command "git [command] --help" opens as HTML in my code editor - no output to terminal. How do I revert to default behavior?
  
  (Asked by: username_0 on 2020-12-31)
  
  When I type `git reset --help` I don't get output in the bash terminal, but a new tab opens in my code editor to reveal some dense HTML. How can I change Git's behavior to display the help message in the bash terminal? I'm not sure how to fix this.
  
  **Update:**
  
  .gitconfig file:
  
  ```
  [core]
      editor = 'C:\\Program Files\\Sublime Text 3\\sublime_text.exe' -w
  [user]
      name = name
      email = 'email
      name = 'name
  
  ```
  
  ```
  $ type -a git
  git is /mingw64/bin/git
  git is /mingw64/bin/git
  git is /cmd/git
  
  ```
  
  **Update 2:**
  
  It looks like `help.format` is set to html, but after my user.name and other info, `help.format` is set to web (I did this). I tried setting the browser using multiple browser names, but git fails to launch the help command in the browser and still opens in my code editor.
  
  ```
  $ git config -l
  core.symlinks=false
  core.autocrlf=true
  core.fscache=true
  color.interactive=true
  help.format=html
  user.name=name
  help.format=web
  
  $ git reset --help
  git config option web.browser set to unknown browser: edge
  Resetting to default...
  
  ```
  
  **Tags:** git, bash, versioning
  
  > **Comments:**
  > **username_1**: Hi username_0, Welcome to DevOps.SE.  Thanks for the helpful updates to your question.  I've tried extending my answer in a useful direction.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-12-31. Score: 1
  
  This is not the default behavior of `git` so you have made some local config change to cause this to happen. Look in your `~/.gitconfig` to see if there's anything that doesn't make sense to you. Try commenting it out. The `core.pager` setting is one of the first things I would check. [This stackoverflow question](https://stackoverflow.com/q/2183900/2002471) has a variety of options for dealing with this sort of thing.
  
  ## update 1
  
  I haven't tried to get this sort of thing to work, but according to [the docs](https://git-scm.com/docs/git-help#_configuration_variables) you can also specify a `man.viewer` to define the program that is going to run. Do you get any errors if you try `git help -w reset`?
  
  One work around would be to get the help to show up in the terminal by using `git help -m reset`. By using the `help` subcommand instead of `subcommand --help` you can specify whether you want it to try man, info, or web.
  
  > **Comments:**
  > **username_2**: Also check what `git` is: `type -a git`  
  
  ---
  
  ### Answer by username_3 on 2021-01-02. Score: 0
  
  Please check this out to reset your git config setting
  
  <https://stackoverflow.com/questions/35853986/easiest-way-to-reset-git-config-file>
  
  second thing, if you want output of help then you can use the "git reset -h" command which shows you minimal option of usage in your bash terminal whereas "git reset --help" command will be direct you to html format which is more descriptive explanation of command.
  
  I hope this will help you.
  
  
  ---
  
  