diff --git a/README.md b/README.md index 2533c89..4b9b20b 100644 --- a/README.md +++ b/README.md @@ -781,7 +781,7 @@ git clean -X -f ## Restore deleted file. ```sh -git checkout ^ -- +git checkout -- ``` ## Restore file to a specific commit-hash diff --git a/tips.json b/tips.json index 3400539..21c65a4 100644 --- a/tips.json +++ b/tips.json @@ -278,7 +278,7 @@ "tip": "git clean -X -f" }, { "title": "Restore deleted file.", - "tip": "git checkout ^ -- " + "tip": "git checkout -- " }, { "title": "Restore file to a specific commit-hash", "tip": "git checkout -- "