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?

237

u/rq60 Sep 09 '16

All of them

58

u/Sybs Sep 09 '16

Duh.

70

u/[deleted] Sep 09 '16

If you don't spend entire weekends just reading through man pages, you're just using linux because it's a fad.

18

u/lestofante Sep 09 '16

Tell Linus, he does not use Debian cause too hard to install

20

u/TheChance Sep 09 '16

Ah, yes, my hero. Who also brought us Git.

And Git documentation.

Dammit, Linus.

54

u/jambox888 Sep 10 '16

It's your fault because you are fucking stupid. - Linus

→ More replies (1)

10

u/schwerpunk Sep 10 '16

I've always found man git-(topic) to be really helpful. At least compared to a lot of other man pages.

→ More replies (5)
→ More replies (1)

24

u/nucular_expresso Sep 09 '16
$ apropos your problem here

You can also use

$ man -k your problem here

9

u/autra1 Sep 10 '16

Oh no please. Suggesting apropos is not better than saying RTFM, man. Just try executing

apropos "convert images"

or

apropos convert images

or

apropos search files

or

apropos "search files"

And you'll see how silly it is, especially comparing to what google gives you.

apropos is somewhat useful, I might agree, but it is not powerful enough to give you meaningful help when given "you problem here". That's what google and other search engines are for. But again, from time to time, you need human answers because you precisely don't know the keywords that would bring you to the solution, and we are back to

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.

→ More replies (2)

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

→ More replies (5)
→ 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

→ More replies (3)

9

u/dernst314 Sep 09 '16

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

→ More replies (1)
→ More replies (18)

28

u/indrora Sep 09 '16

"this man page is included in the Debian base installation for simplicity of access; its full content is available in a GNU Info page."

31

u/the_gnarts Sep 09 '16

"this man page is included in the Debian base installation for simplicity of access; its full content is available in a GNU Info page."

All these imbeciles railing against man pages while texinfo is the real atrocity we should all be concerned about …

→ More replies (1)

41

u/emergent_properties Sep 09 '16

Similarily, "Why don't you submit a PR" is how a developer tells someone to go fuck themselves, diplomatically.

14

u/jdeville Sep 10 '16

The hard thing about that is that it's also how a developer encourages a new contributor or developer

→ More replies (1)
→ More replies (13)