Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: man command don't work

Tags:

git

windows-10

In Git Bash, they give me an error for return the "man" command

$ man git
bash: man: command not found

My version of Git:

$ git --version
git version 2.18.0.windows.1
like image 852
LarsN Avatar asked Jul 10 '18 10:07

LarsN


People also ask

How do I run a man in git bash?

Unfortunately Git Bash for Windows does not have the man command. Instead, try using the --help flag after the command you want to learn about. And you also find the manual pages at many different sites online, e.g. http://linuxmanpages.com/. Programs that are run from the shell can get extremely complicated.

How do I open a manual in git bash?

To get the manual page for the aliased command, use git <command> --help .

How do I get git to work in CMD?

Run Command Prompt as Administrator and type choco install git and you'll be able to install git devoted to the command line. Save this answer.

What is PWD command in git?

The Bash command pwd is used to print the 'present working directory'. pwd is equivalent to executing cd on a DOS(Windows console host) terminal. This is the folder or path that the current Bash session resides in. The Bash command ls is used to 'list' contents of the current working directory.


2 Answers

The Git for Windows package (aka Git Bash) does not include the Unix man command but you don't need it.

You can get help for any Git command by running git help <command-name> (for example, git help checkout).

Also, you can read the help online at https://git-scm.com/docs.

like image 78
axiac Avatar answered Oct 12 '22 13:10

axiac


On git bash you can use Command-name --help insted of the man command-name

like image 43
Ayush Kumar Singh Avatar answered Oct 12 '22 11:10

Ayush Kumar Singh