News for hackers. Stuff that matters.
Re:Flight rules for Git by rtkwe on Tuesday October 16, 2018 @12:04PM (#18230461)
Every time I start to dig super deep on problems like this I stop for a second and wonder "just how important is it I fix this error" and "can this be solved by just paving over my local and reapplying my changes...". Most of the time the answer is not extremely and yes.
Re:Flight rules for Git by plorkyeran on Tuesday October 16, 2018 @06:18PM (#18233777)
It's true that for any given problem, learning how to fix it probably isn't worth the time. I've found the long-term benefits of taking the time to learn how to fix every problem I've run into (and importantly, understand what the things I'm doing to fix it do) to be very worth it, though. Over time I've had to google how to do fewer and fewer things, and when I do still need to google something it takes me much less time to understand the answer and how to apply it.

As a polygot developer working in multiple languages, editors and ecosystems, git has been the one tool that I'm always using, and that makes it always worth investing more time into learning how to use it better.

Re:Flight rules for Git by krinchan on Tuesday October 16, 2018 @10:50PM (#18235749)
Same really. I'm considered a "git expert" at work and the extent of my expertise is:

"This merge went completely sideways. But I haven't pushed anything."

"Okay, do this to export the commits you made as a patch file. Move those somewhere safe. Delete your repo. Reclone. Apply the patches. Commit. Start merge over again."

Also I can recognize whatever that weird error message is that means someone deleted a file in one branch and I edited it in another. Usually results in just "git rm (file); and git merge --continue".

Re:Flight rules for Git by majewsky on Tuesday October 23, 2018 @05:30AM (#18281960)
> This merge went completely sideways.

  git merge --abort