News for hackers. Stuff that matters.
Re:How HEAD works in Git by Terr_ on Friday March 08, 2024 @09:46PM (#39649016)
I've heard git described not as a version-control program, but as a toolkit for making a version-control program.

Which makes sense--it explains why sometimes there's no obvious "right" way to do things, and why there are spots where either there is no abstraction or it's pretty leaky in terms of implementation details.

Re:How HEAD works in Git by hnfong on Friday March 08, 2024 @11:24PM (#39649356)
I felt I fully understood git after I realized it was just a data structure.

The data structure isn't even complicated (there are commits, and then there are directories and files associated with the commits), and once I understood the tooling (i.e. git commands) in terms of how it manipulated the data structures, I was basically able to do whatever I intended to on the repo.

Re:How HEAD works in Git by nerdponx on Saturday March 09, 2024 @10:20AM (#39652147)
I mostly agree, but once you understand it, a new frustration emerges: "why can't I just do X on this graph?"