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.
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.