Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

egit replacing single file - HEAD Revision vs File in git index

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?

like image 291
Jeff Storey Avatar asked Jun 27 '12 02:06

Jeff Storey


1 Answers

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.

like image 56
Amber Avatar answered Oct 25 '22 07:10

Amber