我的球队的Git有一些承诺,我可以看到在提交更改,但不能看到这个文件内容的变化。当我显示指定文件的日志时,不会显示这些提交。Git修订失去
当我运行git log --stat HeroCombine.lua
我:
commit eb4ceb8b95fcdab4bbd4737710a9cbdffa3f3708
Author: zhangzhexi <[email protected]>
Date: Mon Jan 13 22:38:15 2014 +0800
Fight Win UI
source/SplCardClient/SplCardClient/Resources/lua/HeroCombine.lua | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
当我运行git log --stat --follow HeroCombine.lua
我:
commit ce8d69ae6e43d908f45f14247b55500d440262d7
Author: zhangzhexi <[email protected]>
Date: Wed Jan 15 22:12:35 2014 +0800
Auto jump to pos in list
source/SplCardClient/SplCardClient/Resources/lua/HeroCombine.lua | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
commit 5f7c4e72afab9f3076ec8cdab7b27a30f4c95f21
Author: zhangzhexi <[email protected]>
Date: Wed Jan 15 21:51:33 2014 +0800
Update data in codes
source/SplCardClient/SplCardClient/Resources/lua/HeroCombine.lua | 9 +++++++++
1 file changed, 9 insertions(+)
commit 8a2a826502147cb68ceee43713af47283d2c9d5a
Author: zhangzhexi <[email protected]>
Date: Wed Jan 15 21:25:55 2014 +0800
Add close to Hero Combine UI
source/SplCardClient/SplCardClient/Resources/lua/HeroCombine.lua | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
commit eb4ceb8b95fcdab4bbd4737710a9cbdffa3f3708
Author: zhangzhexi <[email protected]>
Date: Mon Jan 13 22:38:15 2014 +0800
Fight Win UI
source/SplCardClient/SplCardClient/Resources/lua/HeroCombine.lua | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
但HeroCombine.lua
文件看起来停留在版本eb4ceb8
,每一件事都承诺过了迷路了。从你的团队
你的问题并不能使它完全清楚你有什么问题,究竟。但是,您始终可以使用'git log -p - 关注HeroCombine.lua'来查看与引入它们的提交配对的文件的确切更改。这应该让你明白哪里有你不想要的变化(或者不想变成什么),神秘地出现(或者消失)。 – user4815162342
我的问题是HeroCombine.lua文件保留在旧版本中。稍后提交中的更改将丢失。如果没有关注选项,后面的提交不会显示在git log中。 –
我猜这个文件被移动了,'git log --follow'找到了它的新位置,而你的签出仍旧有旧的和新的。用find命令查找文件的最新位置grep HeroCombine.lua'。 – user4815162342