@@ -1,5 +1,6 @@
|
||||
---
|
||||
title: my favorite git flag
|
||||
layout: post-with-toc.njk
|
||||
image:
|
||||
src: 2025/shelf-mushrooms.jpg
|
||||
alt: "Picture unrelated to post. Creamy beige shelf mushrooms on a mossy tree trunk."
|
||||
@@ -20,7 +21,7 @@ also, [TIL](https://xkcd.com/1053/): this command is a shortcut to the `patch` s
|
||||
|
||||
a classic scenario: you've realized your uncommitted work doesn't just encapsulate one change, and it's not so easily split as to be separable per-file. `git add -p` instead lets you choose to stage changes chunk-by-chunk, or, as `git` terms it, hunk-by-hunk.
|
||||
|
||||
### hunks
|
||||
### hunks...
|
||||
|
||||
...are not perfect. you can split hunks, but only so much, and there's going to be cases where your changes are *so* mixed in as to be inseparable.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user