Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nope - short answer - git internals store whole files even for the smallest change. The thinking is that "disk is cheap (compared to computing time)", and there are different algorithms to present diffs / history that's useful having the original files around.

At first glance, that seems like a bad idea, but peeking into the '.git' folder, there are certain advantages of it over diff/patch storage formats and vice versa.

Longer answers: https://stackoverflow.com/questions/41482898/git-seems-to-st...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: