▲ | saagarjha 4 days ago | ||||||||||||||||
Yes, but the moment you try to push your local git will complain that you are not aligned with the upstream repo. | |||||||||||||||||
▲ | perihelions 4 days ago | parent [-] | ||||||||||||||||
Not so. GitHub would remember who you are; advertise to you and to you only a set of fake checksums consistent with your fake view of the repo. Your git client would see nothing amiss—your local fake checksums are consistent with the fake checksums the server sent you. Having accepted your push, the server would ignore the fake checksums, extract the content of your patch, apply it to the genuine repo, and compute a new set of checksums, extending the other checksum tree as if you had pushed directly to it. That's what an MITM is. | |||||||||||||||||
|