-
Say I have a lot of unstaged changes in a repo. I have a file or subdir selected in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you want to discard just a specific file, move the cursor to the file.
|
Beta Was this translation helpful? Give feedback.
If you want to discard just a specific file, move the cursor to the file.
d
discard whatever is under the cursor, it's as if you wrotegit checkout -- <thing under cursor>
. If it's a directory, it'll discard that directory. If it's a file, it'll discard that file.