github - git在误操作checkout --.之后所有未提交的改动全丢失了
習慣沉默
習慣沉默 2017-05-02 09:37:11
0
3
743

使用git add --all添加到暂存区后未做提交,之后执行了git reset head操作,然后又执行了git checkout --.操作把所有未提交的数据全清空了,然而我本是想清空另一个分支的更改的,结果一下午做的东西全没了。请问还有恢复的可能吗?

習慣沉默
習慣沉默

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!