git提交历史丢失了吗?
我遇到了以下问题:git提交历史丢失了吗?,git,gitlab,Git,Gitlab,我遇到了以下问题: $ git show 0fb108b commit 0fb108b3e564f92e60a14d4da6ab1df32e67a35f Author: user1 <user1@example.com> Date: Thu Apr 16 10:08:01 2015 +0800 update commiit diff --git a/file1.jsp index a6183b1..b07cd04
$ git show 0fb108b
commit 0fb108b3e564f92e60a14d4da6ab1df32e67a35f
Author: user1 <user1@example.com>
Date: Thu Apr 16 10:08:01 2015 +0800
update commiit
diff --git a/file1.jsp
index a6183b1..b07cd04 100644
...
...
gitlab版本:gitlab-7.7.2_omnibus.5.4.2.ci x86_64
git版本:git版本1.9.5.msysgit.0或EclipseSubgit-2.0.3
操作系统版本:CentOS 7.0 64位
如何解决这个问题?谢谢 最简单的方法是:
git log --follow -p -- file1.jsp
该提交可能不在当前分支中。不,我肯定会在同一分支中工作。谢谢!为什么你会看到这段历史?当然。github仅“托管”您的文件。一旦你克隆了它,你的机器上就有了所有的本地数据。对不起,我错了,为什么github看不到这个提交历史?我不明白。您已将更改推送到github,但没有看到它们?若你们并没有推动他们,他们只是本地的变化当然是的,我已经推动到Gitlab,但有些不能看到承诺,为什么?
git log --follow -p -- file1.jsp