4 ms·
Master, sure; that takes a (long) while. But one: you've got to start somewhere, and two: Chapter 8 (http://www-cs-students.stanford.edu/~blynn/gitmagic/book.ht
by fragmede 17y ago
Master, sure; that takes a (long) while. But one: you've got to start somewhere, and two: Chapter 8 (http://www-cs-students.stanford.edu/~blynn/gitmagic/book.html#_secrets_revealed http://www-cs-students.stanford.edu/~blynn/gitmagic/book.htm...) covers this.
I understand Git's internals well enough, but I don't, nor have I tried to understand the actual packing heuristics, nor do I believe that I need to, to be good at git. (Recent HN posting on the packing heuristics: http://news.ycombinator.com/item?id=1058204 http://news.ycombinator.com/item?id=1058204)
- artagnon 17y agoI don't understand packing heuristics either, and no, you don't need to understand it to be good at Git. What you do need to understand: what commit objects really are, and how they're connected to each other. This should cover branches, tags, rewriting history. There's no point describing porcelain commands in great detail: that's what manpages are for. About starting somewhere, I agree. There are plenty of "cookbook tutorials" to take you through some everyday scenarios. In my opinion, it's much easier to screw up with Git than with SVN: so when this does happen, it's time to move onto understanding the internals.
- etherealG 17y agosorry, but I disagree that it's easier to mess up in git. case in point, the rm command. in git the rm command will not destroy the existence of any actual data, in subversion it will. so an "accidental" rm in git looses you nothing but time in reverting correctly, in subversion you loose data, which is irrecoverable. similar things can be said for almost any git command. and those that could loose data require a force flag, almost every time.