add之后git reset --hard操作找回代码
参考地址:https://blog.csdn.net/qq_31608451/article/details/78342365
实测有效
参考地址:https://blog.csdn.net/cjh_android/article/details/51923618
git 操作解决办法
原文:https://www.cnblogs.com/wei-dong/p/12537482.html