[cctbxbb] Git

Luc Bourhis luc_j_bourhis at mac.com
Tue Jan 12 12:18:45 PST 2016


Another way to slice what Graeme has just written is that there are two orthogonal aspects to git: the delocalised, collaborative, multi-branching thingy on one hand and a better version control purely locally on the other hand. One can ignore completely the former and still ripe the benefits of the latter. 

For example, let’s say you start to fix a bug and in the process you end up having to introduce new features and/or fix other things to make it work. After getting it all to work, you would really like to be able to split your changes in several commits, each concern with one feature/fix, even if some of these separate changes happened at different lines of the same file. With SVN, it’s so painful to do that most people will just commit it all in one commit. With ‘git add -p’, you can add chunk by chunk the changes related to each other to a first commit. Then proceed the same with a second commit. Etc. This is one of the feature which sold me on git. 

Best wishes,

Luc




More information about the cctbxbb mailing list