Tricks & Tips: Git – committing specific sections of a file

(If you are an SVN user, see the end of this post.)

Using git add -p

This command has been a life saver for me on several occasions when writing my dissertation project, something I look forward to talking about on here later. It allows you to stage specific lines within a file using the -p switch on the add function. Lets say you have this file:

Continue reading