如何将"普通"Git存储库转换为裸存储库?
主要区别似乎是:
在普通的git存储库中,您.git
在存储库中有一个包含所有相关数据的文件夹,而所有其他文件都构建了您的工作副本
在一个简单的Git存储库中,没有工作副本,文件夹(让我们称之为repo.git
)包含实际的存储库数据
git version-control git-clone git-bare git-non-bare-repository
当我进行git推送时,我看到以下内容:
warning: updating the currently checked out branch; this may cause confusion,
as the index and working tree do not reflect changes that are now in HEAD.
Run Code Online (Sandbox Code Playgroud)
我用Google搜索了这条消息,我所能找到的只是一个git邮件列表讨论,作者试图确切地决定如何使这个消息更好地与我沟通真正的问题是什么.
我是怎么造成这种情况的,我该如何解决?