Gitコマンドのヘルプをブラウザで確認する

Posted: | Tags: Git

ヘルプを見る3種類の方法

Gitのコマンドのヘルプを見るには、3種類の方法がある。

$ git help <command>
$ git <command> --help
$ man git-<command>

例えば、configコマンドのヘルプを見たい場合は、以下のいずれかで見れる。

$ git help config
$ git config --help
$ man git-config

helpコマンド自体のhelpも見れる。

$ git help help
$ git help --help
$ man git-help

ヘルプをブラウザで確認する

ターミナルで見るのに慣れていない場合は、-w(または--web)オプションを付けることで、ブラウザで見ることもできる。

$ git help -w <command>

関連カテゴリー

関連記事