Most active commenters
  • antithesis-nl(4)
  • leptons(4)
  • jazzyjackson(3)

←back to thread

Oh Shit, Git?

(ohshitgit.com)
464 points Anon84 | 27 comments | | HN request time: 0.822s | source | bottom
1. antithesis-nl ◴[] No.42729179[source]
Yeah, please don't create sites like this. Just... don't.

Any, and I mean any "in case of a Git problem, just do this" recipe is wrong, often in very subtle ways. So, my advice: in case of a Git problem, contact the help channel provided by the organization hosting your Git repository. They'll help you out! And if it's your personal-I-am-truly-the-only-human-using-this repository? Just recreate it, and save yourself the pain.

Source: I'm part of the team behind the #githelp channel in many $DAYJOBs, and we know how hard things are. You committed an unencrypted password file, or worse, your entire 'secret' MP4 collection to our monorepo? Sure, just let us know! Pushed your experimental branch to master/main/head/whatever? We'll fix it!

Just don't ever, for whatever reason, run that-chain-of-commands you found on the Internet, without understanding what they do! In most cases, your initial mistake can be undone pretty quickly (despite requiring nonstandard tooling), but once you're three levels deep and four days later, not so much...

replies(4): >>42729324 #>>42729429 #>>42729795 #>>42730672 #
2. 1over137 ◴[] No.42729324[source]
We’re not all working at $bigcorp with dedicated help teams. Sites like this are great and have helped me many times!
replies(2): >>42729363 #>>42729392 #
3. doubled112 ◴[] No.42729363[source]
What happens when you are the help team and it's the first time something goes wrong?
replies(1): >>42729498 #
4. antithesis-nl ◴[] No.42729392[source]
OK, so you've truly screwed up your your personal/small-team repos to the point of requiring poorly-understood command sequences from the Notoriously Reliable Internet more than once?

I applaud you for your honesty, but... Really?

replies(3): >>42729477 #>>42730910 #>>42733834 #
5. PaulDavisThe1st ◴[] No.42729429[source]
I've been using git for at least 6 years now, maybe 10.

Sites like this are a great aid to remembering how to deal with certain situations. And yes, I understand what the commands do, but that doesn't mean I always could, or always want to, put together the series of steps from scratch.

And also, we self-host our own gitea hosting because we're not getting sucked down by yet another hosting debacle (old enough to have suffered under sourceforge, and don't plan on getting in the same situation again). For git hosting just as much as everything else on line, if you're not paying for it, you're not the customer.

replies(1): >>42729569 #
6. jazzyjackson ◴[] No.42729477{3}[source]
Bro, really, self-taught people with a bare minimum understanding of the tools they use are super normal, and when they get into a pit they have to fix it themselves.

Although to your point folks would be better served carefully reading the docs / git book than googling a specific solution to their specific error code.

replies(2): >>42729524 #>>42729562 #
7. antithesis-nl ◴[] No.42729498{3}[source]
A 'team', by definition, consists of more people than 'you.'

And, by the time a '#githelp team' is formed, it's to address patterns to which there are known solutions.

One of the many problems with Git, is that these solutions depend very, very much on the structure of the repo and the common practices of its users.

So, instead of executing random commands from the Internet, just ask. Please! Or, if there's truly nobody going to be around, give in and recreate the repo. You'll save yourself so much pain in the long run...

replies(1): >>42730946 #
8. kstrauser ◴[] No.42729562{4}[source]
For me, the value of things like this is in learning the terminology for what I broke and how to fix it. I'm not going to copy-and-paste advice off the Internet. I never have. It's still super helpful to see "oh, that thing I want to do is called frobnitzing the corple. Now I know what to Google!"
9. antithesis-nl ◴[] No.42729569[source]
> For git hosting just as much as everything else on line, if you're not paying for it, you're not the customer.

Yeah, lovely trope, but I'm literally talking about organizations hosting their Git repos on a file share here.

replies(1): >>42729772 #
10. jazzyjackson ◴[] No.42729641{5}[source]
I guess we're coming from different places. In my vernacular, ending a comment with "...really?" is about as casual as calling somebody bro.

It's gender neutral btw.

replies(1): >>42729857 #
11. PaulDavisThe1st ◴[] No.42729772{3}[source]
Why would you ask employees of a file hosting service about how to use git?
12. jpeloquin ◴[] No.42729795[source]
Recipes like these aren't useless, but yes, they really need to be prefixed with whether they expect to start from a clean work tree and empty staging area. Or describe what they'll do to uncommitted changes, both staged & unstaged. Otherwise they pose a substantial risk of making the problem worse.
13. leptons ◴[] No.42729857{6}[source]
"Bro" is the furthest thing from "gender neutral". Not sure how you could think it's gender neutral. It originated from male behavior and is definitely not gender neutral. You can address women as "bro" and they might even respond to you but they'll think you're absolutely weird.
replies(3): >>42729912 #>>42730682 #>>42731634 #
14. jazzyjackson ◴[] No.42729912{7}[source]
"bro", "bruh", it's more of an exclamation of surprise than a title conferred to the person being addressed, but even then, I don't know, people call folks "auntie" and "uncle" who aren't actually their auntie and uncle. language is flexible. it may reference the kind of fraternity between brothers but that feeling is not limited to the male sex.
replies(1): >>42730473 #
15. syndicatedjelly ◴[] No.42730059{5}[source]
U r
16. kstrauser ◴[] No.42730473{8}[source]
Can confirm. It sounds so weird to me, but I hear my kids and their friends call each other "bro" or "bruh" all the time, regardless of gender.
replies(1): >>42736210 #
17. conkeisterdoor ◴[] No.42730672[source]
> "... or worse, your entire 'secret' MP4 collection to our monorepo?"

Oh no, that poor soul...

18. DangitBobby ◴[] No.42730682{7}[source]
No, the female and non-binary people in my life both give and accept "bro" or "bruh" without complaint. I once asked one of my non-binary friends directly how they felt about "bro", "dude", etc and they consider those words to be gender neutral. They are like the word "man" now ("IDK man").
replies(2): >>42731070 #>>42745825 #
19. recursive ◴[] No.42730910{3}[source]
Yes. I think the ratio of small-team repos this describes is close to 100%. You seem to have a certain idea of how repos are managed. I don't think it's very representative of reality.
20. recursive ◴[] No.42730946{4}[source]
> A 'team', by definition, consists of more people than 'you.'

I'm the resident git expert, but not by choice. There's more that I don't know than that I do. It's not uncommon that I need to use internet recipes to un-wedge someone's clone.

> Or, if there's truly nobody going to be around, give in and recreate the repo. You'll save yourself so much pain in the long run...

This is insane. There are a dozen other people using the remote, not to mention a whole CI/CD build configuration.

21. Terr_ ◴[] No.42731070{8}[source]
> They are like the word "man" now ("IDK man").

That's actually how it was originally, because in Old English "man" just meant a gender-neutral "person."

Gendered versions were "wer" and "wif", so you could have a "wer-man" and a "wif-man", the latter changing pronunciation to become "woman". I suppose this also means that there are both "werewolves" and "wifwolves".

22. spokaneplumb ◴[] No.42731634{7}[source]
I'm about 95% sure that if I ask my two school-age daughters if it's weird to address girls and women as "bro" or "bruh" in informal circumstances, they'll say no. Since I hear them do it with some regularity.
replies(1): >>42745729 #
23. zahlman ◴[] No.42733834{3}[source]
I don't understand your surprise or disbelief. I would imagine most devs have been there. As evidence: just look at Stack Overflow, and compare it to what it's apparently intended to look like and how it's supposed to work (as a denizen of meta.stackoverflow.com I am quite familiar with this struggle).
24. guenthert ◴[] No.42736210{9}[source]
Isn't this like 'guys' including gals a generation earlier?
25. leptons ◴[] No.42745729{8}[source]
>> You can address women as "bro" and they might even respond to you but they'll think you're absolutely weird.

>I'm about 95% sure that if I ask my two school-age daughters if it's weird to address girls and women as "bro" or "bruh"

I'm 100% sure I said women, and not "school-age" girls, who if they weren't your daughters would probably describe you as "creep" because that's what teenage girls do. But sure, go ahead and move the goalposts anywhere you want. If citing teenage girls helps you think you're making some kind of point, then the mic is all yours.

replies(1): >>42746283 #
26. leptons ◴[] No.42745825{8}[source]
Where did I mention "non-binary people"? I specifically said women. Not a non-woman. Go call an actual Woman a "bro" and see how far you get with her.
27. leptons ◴[] No.42746873{10}[source]
Sorry, NO. Women are women, girls are girls, "bros" are "bros", and trolls are trolls. I know which one you are.