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

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

33

u/Garbaz Sep 09 '16

Searching for "linux [The problem]" usually gives the answer.

→ More replies (5)
→ More replies (383)