Why Nostr? What is Njump?
2024-06-13 18:40:00

Julia Evans on Nostr: thinking of writing a git zine bonus page about how to use `git add -p` but I ...

thinking of writing a git zine bonus page about how to use `git add -p`

but I realized that I don’t have a great way to solve my main problem with `git add -p`, which is that sometimes I have 2 adjacent lines and I want to stage one of them but not the other one

the solutions I know are

a) say ‘n', edit the file to undo one of the changes, and then run `git add -p` again
b) say ‘e’ and edit the patch manually (which I'm a little afraid of honestly)

(also I would welcome other tips!)

Author Public Key
npub1hyjddt50dwcvjmtgr7t4czg4tt9j5xajavl0uvkt0v7wksx0460sp0avly