1 Star 0 Fork 0

pcd / ThePoolofDevelop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Git.txt 334 Bytes
一键复制 编辑 原始数据 按行查看 历史
pcd 提交于 2019-04-23 16:16 . 提交git的坑
git pull 后。本地的commit被覆盖。本地的状态与远端的状态变为一致
原因未知。解决方法:
1、git reflog 查看本地的提交记录以及id。
2、git reset --hard id将 状态恢复。
3、git pull 后 git push。
若git pull又出现commit覆盖的情况。重复上述步骤,直到成功push。
C/C++
1
https://gitee.com/andwp/ThePoolofDevelop.git
git@gitee.com:andwp/ThePoolofDevelop.git
andwp
ThePoolofDevelop
ThePoolofDevelop
master

搜索帮助