git reset operation is rolled back, the idea of using the following:
Reset Type There are three:
-
-
- Mixed default, leaving only the source code, commit and rollback index information
- Soft roll back to a version, only commit rollback of the information, before you write the code or reservations , you will not return to the index file level. If you have submitted directly commit
- Hard to completely rollback, local source will become a version of the content, the commit before the code is not retained
-
To Commit roll back to the version which, for example, HEAD current version, HEAD ^ to the previous version;
Git reset using default rollback generally rough or hard mixed manner;