Classify articles under Git

 Git

Just now I clicked a Revert with the desktop GitHub, and the file was deleted... I clicked the Revert file again on this submission and returned.

But I saw that there were no eggs to submit these two times, It's itchy. It's X-degree

Find the following personal reliable method to withdraw success

 git reset --hard <commit_id>

Commit_id is in this form in the log 44c7aa824b0f6383ad1eaf037185ea25cb77878f
Use the sha code omitted to 6 digits in the desktop GitHub, which can also be withdrawn


There are two methods besides commit_id

 --HEAD//Last submission --HEAD ^//Last submission