0

There are two places that I can find manpages of git and its subcommands:

Not sure if they are identical.

Is there a feasible way to download and convert the manpages of git and its subcommands into a pdf file, using software that can be installed in Ubuntu? It would be even better if the pdf file has outlines/bookmarks for the subcommands and the sections within each manpage.

  • Is cyberciti.biz/open-source/… wkhtmltopdf an option? – Jeff Schaller Dec 29 '15 at 3:40
  • git-scm has a book – Braiam Dec 29 '15 at 3:46
  • @Jeff: There are many links in the webpage for the git subcommands, and any easy way to extract those links for the git subcommands? – Tim Dec 29 '15 at 3:53
  • @Bra: do you mean the book of pro git? I am asking about the manpages of git and its subcommands, which are not in pro git. – Tim Dec 29 '15 at 3:54
  • 1
    This shouldn't be closed as a 'Request for learning materials'. This question is about converting HTML to PDF. – garethTheRed Dec 29 '15 at 8:53
1

To convert a man page to PDF, you can do this:

man -t git | ps2pdf - git.pdf

You should be able to find a ps2pdf package for your distribution. For example, here's one for Debian.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.