我的球隊的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