Partially Commit a File with Git by Splitting It Manually

InstructorDave Ceddia

Share this video with your friends

Send Tweet

When you want to do a partial commit with git, but you can't "split" a hunk to just the lines you want to commit, you can manually edit a hunk in order to commit just a few lines of a larger change. This lesson covers how to manually edit a hunk in git, and how to fix errors like "Your edited hunk does not apply", "patch failed", or "patch does not apply".