3 ms·
> ...I'd like to move my changes into a temporary area and then pick the lines into my working directory and commit that. One way to achieve this is by putting
by zoomablemind 5y ago
> ...I'd like to move my changes into a temporary area and then pick the lines into my working directory and commit that.
One way to achieve this is by putting the changes into stash 'git stash push', then interactively grab the desired hunks from the stash into the work dir with 'git checkout --patch stash@{id}'. This will also add the accepted changes into the index, staging them for the commit.
Kinda granular, but allows me to keep those nice verbose debugging parts yet out of commit.