github - git pull前没有提交的本地改动还能找回吗?
仅有的幸福
仅有的幸福 2017-04-26 09:01:57
0
2
923

上午写了个windows下的番茄钟自己用,写完后想把代码托管在github上。
在github上建了仓库 MyTomatoes.

本地用 git remote add origin https://xxx 添加了远端仓库。
然后就悲催了,本地没有commit , 就直接 git pull 了。

然后……,我的代码和工程文件就无影无踪了。

这种情况是不是就没办法找回了?

仅有的幸福
仅有的幸福

reply all(2)
phpcn_u1582

Let’s see if we can find it in the local history of the IDE. I’m not sure. Eclipse has this function

習慣沉默

git pull Either the merge is successful or there is a conflict prompt. This command has no effect on Untracked files.
But from your description, it doesn't seem to indicate a conflict, so it should have no impact on the existing code.
How come the code and project disappear?
I just tried many times but couldn't figure out how to reproduce the ball.

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