github - All uncommitted changes were lost after git misoperated checkout --.
習慣沉默
習慣沉默 2017-05-02 09:37:11
0
3
787

After using git add --all to add to the staging area, no submission was made. Then I performed the git reset head operation, and then performed the git checkout --. operation to clear all uncommitted data. However, I originally I wanted to clear out the changes in another branch, but everything I made in the afternoon was gone. Is it still possible to recover?

習慣沉默
習慣沉默

reply all(3)
黄舟

Look at git reflog

某草草

There is a git fsck command that you can check out. There is also an article here that introduces git add and then executed the git reset hard command to finally retrieve the file. You can search for it

巴扎黑

Git reset head will clear the previous pull. I usually look for the previous code in the local history of the editing tool eclipse or idea. Most of them can be recovered.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template