简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM