News for hackers. Stuff that matters.
Re:Oh Shit, Git? by usr1106 on Sunday August 16, 2020 @03:27AM (#24175947)
Branches are just pointers into a graph of commits. The graph cannot be mutated (it can be pruned by garbage collection but that does never happen related to an oh shit event, it takes weeks even in a heavily modified repo). The pointers can be modified to point anywhere else in the graph, which makes things look mutated without being mutated. Using reflog you can get your back to where your pointers pointed to at any earlier point of time.

There are no comments on this comment yet.