[ovs-dev] splitting commits in Git (was: Re: Sync on PTAP, EXT-382 and NSH)

Ben Pfaff blp at ovn.org
Wed Dec 21 17:30:24 UTC 2016


There was a question about splitting up large commits in Git.  I do this
routinely and I volunteered to find some resources.

The "git-rebase" manpage has a section titled "SPLITTING COMMITS" that
is a good place to start.  It does not cover very well how to commit
parts of a file rather than a whole file, which is something that I do
often.  For this, I use "git citool" and then select lines to commit and
right-click to "stage lines for commit".  I know that there's a mode for
the "git commit" CLI that can do this too, but I've always found that
hard to use compared to "git citool".

I do this often so I'm happy to answer questions.


More information about the dev mailing list