Git documentation about the revert
subcommand of git add -i
:
revert
This has a very similar UI to update, and the staged information for selected paths are reverted to that of the HEAD version.
Maybe I incorrectly understand this text... I understand this like:
revert
does the same likegit checkout -- file_name
.
But at practice I see revert
only removes file from the staging area. Did I incorrect translat, or it is incorrect text in the documentation?