]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-format-patch.txt
doc: promote "git restore"
[thirdparty/git.git] / Documentation / git-format-patch.txt
index 1af85d404f5191c18a8c587df06e7c0620066236..01bfcecf690e857c5a3b14ef3be1f9307efe825d 100644 (file)
@@ -421,8 +421,8 @@ One way to test if your MUA is set up correctly is:
 * Apply it:
 
     $ git fetch <project> master:test-apply
-    $ git checkout test-apply
-    $ git reset --hard
+    $ git switch test-apply
+    $ git restore --source=HEAD --staged --worktree :/
     $ git am a.patch
 
 If it does not apply correctly, there can be various reasons.