With git you can commit part of file with 'git add -p <filename> ' and after this press s , and choose which part commit