git,github,fork和git的核心概念是什么?科。 git与SVN相比如何? [英] What are the core concepts of git, github, fork & branch. How does git compare to SVN?

查看:113
本文介绍了git,github,fork和git的核心概念是什么?科。 git与SVN相比如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Github一段时间,但是我对Git背后的一些关键概念感到困惑。



我的使用VCS的背景始于Source Safe然后过渡到SVN和TFS。我认为我陷入了CVS系统的旧思维方式,比如SVN和TFS。



Git中的服务器端和客户端被认为是什么。从我所了解的情况来看,它们之间并没有明显的区别。

从技术层面来说,Fork是什么意思。它是分支的类型吗?



Wat在git中的分支意味着什么?它和SVN一样吗?



另外我一直在寻找Git核心概念的良好可视化,但是还没有找到任何适用于

解决方案

以下是如何理解Git的内容:


  1. 忘记您对其他VCS的所有知识(暂时!)

  2. 阅读 Git寓言。尽管真的,但如果你浏览一下,你会错过一些东西,只是试图用现有的SCM知识填补空白,这就是抛弃你的东西。事实上,如果你真的想明白,大声阅读那篇博客文章

Git只是保存和恢复快照的一种方式。每个快照都有一个ID(SHA1),并且可能有一个或多个refs(指针)。分店?只是一个友好的名字为特定的快照。标签?一样。头?这只是当前快照的代名词。方便的是,这些快照每个都带有对更改内容的描述 - 此描述是提交消息。


I've been using Github for sometime now but I'm getting a bit confused about some key concepts behind Git.

My background with VCS started with Source Safe and then transitioned into SVN and TFS. I think I'm stuck in the old way of thinking of CVS system, like SVN and TFS.

What is considered server-side and client-side in Git. From what I've understood there isn't a clear distinction between them.

In a technical sense, what does a Fork mean. Is it a "type" of branch?

Wat does a branch mean in git? Is it the same as in SVN?

Also I've been looking for a good visualization of the core concepts of Git, but haven't found any one that works for me.

解决方案

Here's how to understand Git:

  1. Forget everything you know about other VCSs (temporarily!)
  2. Read The Git Parable. Really read it though, if you skim, you'll miss stuff and just try to fill in the gaps with your existing SCM knowledge, which is what's throwing you off. In fact, if you really want to understand, read that blog post aloud.

At its core, Git is just a way to save and restore snapshots. Each snapshot has an "ID" (the SHA1), and may have one or more "refs" (pointers) to it. A branch? Just a friendlier name for a particular snapshot. Tags? Same thing. HEAD? That's just a "pronoun" for the current snapshot. Conveniently, these snapshots each come with a description of what changed - this description is the commit message.

这篇关于git,github,fork和git的核心概念是什么?科。 git与SVN相比如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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