Git如何进行分布式源代码管理? [英] How is Git Distributed Source Code Management?

查看:133
本文介绍了Git如何进行分布式源代码管理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是具有UNIX SCCS和Microsoft Visual SourceSafe经验的Git新手。我只是在学习Git,它的学习曲线似乎很大且令人痛苦。我已经看到Git吹走了我所有尚未提交的数据文件,这令我感到担忧。 (实用程序如何在不发出警告的情况下删除数据文件,这超出了我的理解。)

I am a Git newbee with UNIX SCCS and Microsoft Visual SourceSafe experience. I’m just learning Git and it seems to have a huge and painful learning curve. I’ve already seen Git blow away all the data files I hadn’t committed, which concerns me. (How a utility can delete data files without warning is beyond me).

Linus Torvalds在有关Git的视频中声称Git是分布式的,吹捧了分发的好处,但是除了每个人都有源的副本(克隆)之外,其他人并没有真正解释分发的工作原理。

Linus Torvalds, in his video on Git, claims that Git is distributed, touts the benefits of distribution, but other than everyone having a copy (clone) of the source, doesn’t really explain how distribution works.

Git如何帮助分发?
Git如何帮助恢复丢失的文件?
Git分发如何工作?
我可以找到文件的分发位置吗?
是否有Git分发教程?

How does Git help distribution? How does Git help recover lost files? How does Git distribution work? Can I find where files have been distributed? Is there a Git distribution tutorial?

预先感谢!

推荐答案

阅读: http:// www.newartisans.com/2008/04/git-from-the-bottom-up.html

关于您的其他问题:

Git如何工作?

此这个问题不够具体,无法回答。但是一般来说,Git通过创建对象并将它们放在树中来工作。这些对象对应于您对内容所做的更改。树木本身就是物体。 Git跟踪的是对存储库中的内容所做的更改。

This is not a question specific enough to be answered. But generally, Git works by creating objects and putting them in a tree. The objects correspond to changes you have made to your content. Trees are objects themselves. What Git tracks is the changes made to the content in the repository.

分发如何工作?

因为所有存储库都可以是服务器,所以不同的存储库可以比较它们的树和对象,并确定该存储库的当前状态与其他状态之间的变化。因此,他们能够从其他存储库中推送/拉出。

Because all repositories can be servers, different repositories can compare their trees and objects, and determine what the changes are between such repository's current state and another. Thus, they are able to push to/pull from other repositories.

它有什么帮助?

如果您看不到它对您有什么帮助,请坚持使用MVSS。

If you don't see how it can help you, stick with MVSS.

我认为可能存在词汇问题。发行不发货。 Git的发行意味着每个存储库都是一台服务器。这并不意味着它将跟踪克隆到的位置(尽管您自己的存储库可以保留从中进行推送/推送至的远程存储库的列表)。

I think there might be a vocabulary problem. Distribution is not shipping. Git's distribution means every repository is a server. It doesn't mean it will keep track of where it has been cloned (although your own repository can keep a list of remote repositories from which to pull from / push to).

阅读我链接到的PDF。然后按照他们的指示创建一个github存储库。 其他人的存储库,任何人,只是为了看看它是如何工作的。

Read the PDF I made a link to. Then create a github repository by following their indications. Fork someone else's repository, anyone, just to see how it works.

这篇关于Git如何进行分布式源代码管理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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