裸机和非裸机Git存储库中的差异 [英] Difference in a bare and non-bare Git repository

查看:44
本文介绍了裸机和非裸机Git存储库中的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在git中,我只是想知道裸仓库和非裸仓库之间的区别.我知道,通常只将裸存储库推送到该存储库中,而不会在其中进行更改.除此之外,它与非裸仓库有何不同?

In git, I was just wondering what the difference between a bare and a non-bare repository are. I know that a bare repository is typically just pushed to and changes aren't made within it. Other than that, what makes it different than a repository that is non-bare?

推荐答案

裸存储库仅包含.git文件夹,而没有检出的源树.裸存储库通常在远程存储库中使用.

Bare repository has just the .git folder without a checked out source tree. Bare repository is usually used in the remote depository.

非裸存储库同时具有.git文件夹和源代码树.

Non-bare repository has both .git folder and source tree.

这篇关于裸机和非裸机Git存储库中的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆