Confirmed users
1,643
edits
| Line 328: | Line 328: | ||
git reset [-q] <tree-ish> [--] <paths> | git reset [-q] <tree-ish> [--] <paths> | ||
Using it while intending to recover files in working directory | Using it while intending to recover files in working directory from a specific revision. Index or branch ref have nothing to do with this usage. | ||
<span style="color:blue">$ echo "Jerry" > a.txt</span> | <span style="color:blue">$ echo "Jerry" > a.txt</span> | ||
<span style="color:blue">$ git add a.txt</span> | <span style="color:blue">$ git add a.txt</span> | ||