News for hackers. Stuff that matters.
Re:Git undo: We can do better by SkyPuncher on Monday June 21, 2021 @11:47AM (#27580326)
> The truth is, while we use git every day, most people really don't understand how it works.

I once knew how it worked with moderate level of detail, but I simply do not need anything advanced for my day-to-day work.

Re:Git undo: We can do better by carlosf on Monday June 21, 2021 @11:56AM (#27580402)
Yeah that's my issue as well. I generally forget anything I don't use often and git is full of important stuff that you need infrequently.
Re:Git undo: We can do better by lanstin on Monday June 21, 2021 @02:21PM (#27582051)
It's very simple, it's a graph, and you can reason what changes you want to make to the graph, and then google for the commands. Re-writing history is really only reserved for binary checkins, and that task should be assigned to whomever checked them in, so you should never need to do a destructive change. Even credentials checked in should be rotated so they aren't valid, not re-written.