git switching branches results in loss of unadded code
伊谢尔伦
伊谢尔伦 2017-05-02 09:27:09
0
2
670

Accidentally when checking out the branch, I used --force to force switch to another branch (crying), causing the part of the code without add to be lost.
I tried to use git reflog to view the log and created a new tmp branch. It points to the HEAD@ before I moved it, but there is still no way (without add) to get it back. Does anyone have any way to get it back?

Note: I restarted my computer.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
洪涛

Remember to use it next timegit stash
It is common to lose code if you are not proficient in version control. You can check it in the IDE's history.

黄舟

There is no way --force is dead.

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