我知道当你将一个子模块添加到git存储库时,它会跟踪由其sha1引用的该子模块的特定提交.
我试图找到存储此sha1值的位置.
在.gitmodules和.git/config文件只显示了子模块的路径,但不是的提交SHA1.
该混帐子模块(1)参考只讲一个的gitlink条目和gitmodules(5)参考不说这事,无论是.
user$ sudo git submodule update
fatal: reference is not a tree: a094dcfeeb43fcd62a9e466156e05e7581026f33
Unable to checkout 'a094dcfeeb43fcd62a9e466156e05e7581026f33' in submodule path 'client/src/util'
Run Code Online (Sandbox Code Playgroud)
我该怎么办?我只想从repo中获取最新代码的干净副本,我不介意丢失我的更改. 如你所知,我显然不确定发生了什么.我只能认为它正在尝试签出一个文件,这意味着git检测到本地计算机上文件的本地更改.
我目前正在使用OSX
我使用capistrano将代码部署到远程计算机上,但是出现以下错误。我如何摆脱这个问题。
executing locally: "git ls-remote git@github.com:mycompany/foo.git staging"
command finished in 468ms
* getting (via checkout) revision df3d0367fd021d83f881f5d7261dba3f891bca22 to /tmp/20130503165924
executing locally: git clone -q --depth 1 git@github.com:mycompany/foo.git /tmp/20130503165924 && cd /tmp/20130503165924 && git checkout -q -b deploy df3d0367fd021d83f881f5d7261dba3f891bca22
fatal: reference is not a tree: df3d0367fd021d83f881f5d7261dba3f891bca22
Run Code Online (Sandbox Code Playgroud)