/tmp/test> git restore -p diff --git a/test b/test index 9405325..5f6f6f9 100644 --- a/test +++ b/test @@ -1,5 +1,2 @@ a -b -c -d e (1/1) Discard this hunk from worktree [y,n,q,a,d,e,?]? e error: patch failed: test:1 error: test: patch does not apply Your edited hunk does not apply. Edit again (saying "no" discards!) [y/n]?