github - Recover files deleted by git reset
phpcn_u1582
phpcn_u1582 2017-06-22 11:52:45
0
3
1049

After using the git add command to add files, git reset --hard accidentally deleted some files on the disk, but using git status you can see the files after git add. How to restore the files in the cache? The following is git Content displayed by status

phpcn_u1582
phpcn_u1582

reply all(3)
漂亮男人

Commit failure means that your changes have not been indexed by git, and recovery is unlikely. Use the git refrog command to try to rescue it.

漂亮男人

It feels like you can git checkout -- xxx to restore the files you want.

Please take a screenshot of your current git status output, and explain specifically what you have done before.

代言

Use the git fsck command to view the blob file, and then restore it based on the ID number. It is possible to restore it, but if there are many files to add, you have to do it one by one

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!