“git clone ...”之后的提交对象在哪里?
在输入 git clone.git/refs/heads/master
是使用 SHA1_code
创建的。
虽然我看到 SHA1_code
指向一个提交对象(通过输入 git cat-file -t SHA1_code
),但我在 .git 中找不到这个提交对象/对象
。
这个提交对象在哪里?
After I typed git clone <path to project>
I see that .git/refs/heads/master
was created with SHA1_code
inside.
Though I see that SHA1_code
points to a commit object (by typing git cat-file -t SHA1_code
), I couldn't find this commit object in .git/objects
.
Where is this commit object ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它可能在一个包中
请参阅 Packfiles (Pro Git Chapter 9-4) 详细了解git对象数据库
It's probably in a pack
Refer to Packfiles (Pro Git Chapter 9-4) to learn more about the git object database