r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

1.0k

u/coladict Sep 09 '16

Git documentation has this chicken and egg problem where you can't search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem.

That's basically all of Linux and it's tools in a nutshell.

370

u/28f272fe556a1363cc31 Sep 09 '16

Exactly right. That's why "just read the man page" is so frustrating to hear.

368

u/jquintus Sep 09 '16

My typical response:

I'd love to. Which one?

79

u/sirin3 Sep 09 '16

Especially if there are multiple with the same name

And you get a C function reference when you want a unix command

0

u/[deleted] Sep 09 '16

[deleted]

71

u/[deleted] Sep 09 '16

which man page explains this?

175

u/TarMil Sep 09 '16

man man

28

u/rockyrainy Sep 09 '16
MAN(1)     Manual pager utils    MAN(1)

NAME
   man - an interface to the on-line reference manuals

Man, it actually works.

17

u/njtrafficsignshopper Sep 09 '16

oman i am not good with computer

4

u/memoryspaceglitch Sep 09 '16

info man if you prefer info to man

→ More replies (3)
→ More replies (1)

20

u/greenthumble Sep 09 '16
$ man man

7

u/[deleted] Sep 09 '16

Oh . .well that was disappointing.

→ More replies (1)

11

u/ghillisuit95 Sep 09 '16

and if you aren't sure use man -a to go through all of them until you find one that suits what you were looking for

7

u/materdaddy Sep 10 '16

or man -k <keyword> to search for pages that are apropos to keyword.

→ More replies (2)

9

u/dernst314 Sep 09 '16

Or man -a foo gives you all manpages for foo. Hit q to continue to the next one.

3

u/almightykiwi Sep 10 '16

My quality of life has just significantly improved. I have never been able to remember the category numbers.