Home > OS >  How to run gittutorial?
How to run gittutorial?

Time:09-15

From the git man page:

"See gittutorial(7) to get started, then see giteveryday(7) for a useful minimum set of commands. The Git User’s Manual[1] has a more in-depth introduction."

I am however, unable to find a command called gittutorial. How do I access it?

CodePudding user response:

git help tutorial or man 7 gittutorial. The (7) in parentheses is a manpage section, section 7 is for introductory/expository conceptual discussion, man 7 intro gets you the section 7 intro page. Git help displays the docs in whatever form they're installed, by default that's manpages but you can say e.g. git help --web tutorial to see whether you've got the html docs installed too.

CodePudding user response:

It refers to https://www.git-scm.com/docs/gittutorial. You could run git help gittutorial to browse the local manual. On Windows, the local manual pages are in mingw64/share/doc/git-doc/ under Git's installation path, which you could also manually open and read.

For giteveryday, you could run git help giteveryday.

But for Git User's Manual, it's https://www.git-scm.com/docs/user-manual. git help user-manual raises an error saying the system cannot find the page gituser-manual.html, which should actually be user-manual.html. It seems git help automatically inserts git at the beginning. So git help everyday and git help tutorial also work, but git help user-manual fails.

  • Related