Creating Laser Focused Git Commits Using Git Add Patch
In this video we'll use the git add patch flag so we can stage a specific part of a file to commit, instead of the whole file.
Quick Jump: Demo'ing How to Use Git Add Patch
I use git add -p
all the time when making commits because it’s a great way to review what you’re about to commit, but it also lets you split up a file into multiple commits which really helps with creating good git commit messages.
Demo’ing How to Use Git Add Patch
Do you use git add patch often? Let me know below.