git - 为什么裸存储库没有 refs/heads/master?

标签 git

我有一个裸存储库,它在 refs/heads 中没有 master 的条目。它在哪里存储这个引用?

最佳答案

您应该在 packed-refs 文件中找到您要查找的引用。查看git-pack-refs(1) documentation更多。具体来说:

When a ref is missing from the traditional $GIT_DIR/refs directory hierarchy, it is looked up in this file and used if found.

关于git - 为什么裸存储库没有 refs/heads/master?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18597569/

相关文章:

windows - 使用网络驱动器作为 git 存储库

git diff noindex 排除文件

两个本地存储库之间的git推送错误

git - Git 和 Hg 版本控制系统的优缺点是什么?

git - 在 Github 中管理私有(private)仓库

windows - 在 GitHub Windows 客户端中提交后文件不会同步?

git - 使用单独的 git repos 管理 Magento 主题

git - 我在池中撒尿 GIT 风格 - ftp'​​d 文件到 repo 现在 GIT 不同步

android - 使用 repo 同步 android 源时出现 UnicodeDecodeError

git - 将现有 Visual Studio 2022 解决方案添加到新的 Azure Git 存储库