github存储库和git裸存储库有什么区别? [英] what's the difference between github repository and git bare repository?
问题描述
git pull
操作,同时我们可以提交通过Web UI存储库。看起来,github存储库同时作为裸存储库和工作存储库工作? 但是,在git裸存储库中,我们无法将目录提交到存储库。因此,我的问题是
github存储库和git裸存储库有什么不同?
似乎GitHub存储库可以同时用作工作存储库和裸存储库,这是否意味着GitHub存储库是从git裸仓库开发的
不,GitHub上的Git仓库是裸机的,就像您的任何远程仓库想要推。
他们的web界面显示了git repo内容的表示,他们可能是一个临时工作树,用于直接从Web UI修改文件(对于内联编辑介绍),但它是他们自己的内部机制。
从客户的角度来看,您可以将它们视为经典的裸回购。
In github repository, we can git push
git pull
operations, at the same time, we can commit to the repository through the web UI. It seems that the github repository works as bare repository and working repository at the same time?
However, in git bare repository, we cannot commit directory to the repository.
So, my question is
What's real difference between github repository and git bare repository?
It seems that GitHub repository can work as working repository and bare repository at the same time, does that mean GitHub repository is developed from git bare repository
No, Git repos on GitHub are bare, like any remote repo to which you want to push.
Their web interface shows you a representation of the git repo content, and they might a temporary working tree to modify files directly from the web UI (for their inline edit introduced initially in 2011), but it is their own internal mechanism.
From a client's perspective, you can see those as classic bare repos.
这篇关于github存储库和git裸存储库有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!