Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features
Autoplay

    Partially Commit a File with Git by Splitting It Manually

    Dave CeddiaDave Ceddia
    gitgit

    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".

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss