Learn Docker With My Newest Course

Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →

Creating Laser Focused Git Commits Using Git Add Patch

creating-laser-focused-git-commits-using-git-add-patch.jpg

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:

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.

Never Miss a Tip, Trick or Tutorial

Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per year (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.



Comments