4 ms·
Not sure how much good that does. Git history is mutable.
by gmueckl 2y ago
Not sure how much good that does. Git history is mutable.
- karmakaze 2y agoIt's also tamper-evident. Forks would detect the rewrite.
- 0cf8612b2e1e 2y agoI have no idea how GitHub handles this. If I fork a repo through the GH GUI, the source repo rewrites history-is mine impacted? I assume GitHub does all sorts of tricks to minimize materializing data changes unless required. My “fork” could just be a pointer to the now mutated origin.
- drpossum 2y agoIf this changes in the source repo and you try to reconcile from your unmodified base you'll be in for some bad surprises (things like "no common history" errors in the worst of cases). This is the reasons why you have to be careful with things that change branch pointers like squashing merges.
- Flemitplo 2y ago[dead]