In the egit git eclipse plugin, I know I can "reset" a single file by right clicking on it and selecting Replace With > HEAD Revision. What is the difference between replacing with HEAD revision vs File in git index?
Asked
Active
Viewed 1.3k times
1 Answers
22
HEAD
is the version of the file that has already been committed.
The index is the version of the file that has been staged (added) in preparation for a commit, but not yet committed.

Amber
- 507,862
- 82
- 626
- 550
-
3i.e. "replace with `HEAD`" is like saying "revert to last committed version of this file" ? – Don Cheadle Oct 07 '15 at 13:27
-
2"revert to last committed version of this file" (in your local repo) – Tito Apr 30 '18 at 20:46