上午写了个windows下的番茄钟自己用,写完后想把代码托管在github上。
在github上建了仓库 MyTomatoes.
本地用 git remote add origin https://xxx
添加了远端仓库。
然后就悲催了,本地没有commit
, 就直接 git pull
了。
然后……,我的代码和工程文件就无影无踪了。
这种情况是不是就没办法找回了?
phpcn_u15822017-04-26 09:03:57
Let’s see if we can find it in the local history of the IDE. I’m not sure. Eclipse has this function
習慣沉默2017-04-26 09:03:57
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.