Someone has share this source code with me. Which include three folders .Git, branches and trunk.
有人和我分享了这个源代码。其中包括三个文件夹.Git,branches和trunk。
I am familiar with git but usually when we take git clone we get two folders one of source code and one is .git folder inside that. I need to know that what does these folders mean and which one contain the actual source code.
我熟悉git,但通常当我们使用git clone时,我们得到两个文件夹,其中一个是源代码,另一个是.git文件夹。我需要知道这些文件夹是什么意思,哪一个包含实际的源代码。
Thanks!
谢谢!
1 个解决方案
#1
3
Before git was so popular, many people use subversion (svn). In subversion the versioning is linear (revision 10, revision 11, and so on), there is no "inherent" branch and tag. Using these structure is the conventional way to do branching and tagging:
在git如此受欢迎之前,很多人使用颠覆(svn)。在颠覆中,版本控制是线性的(修订版10,修订版11,依此类推),没有“固有的”分支和标记。使用这些结构是进行分支和标记的传统方法:
awesome-repository/
trunk/
README
code.c
branches/
feature1/
README
code.c
feature2/
README
code.c
...
tags/
v0.1/
README
code.c
v0.2/
README
code.c
...
So, probably it is copied from subversion based repository to git based repository. And usually:
所以,它可能是从基于subversion的存储库复制到基于git的存储库。通常是:
-
master
branch in git is intrunk/
directory in subversion - git中的master分支在subversion中的trunk /目录中
- other branches in git are in
branches/*/
directories in subversion - git中的其他分支在subversion中的branches / * /目录中
- tags in git are in
tags/*/
directories in subversion - git中的标签位于subversion中的tags / * /目录中
#1
3
Before git was so popular, many people use subversion (svn). In subversion the versioning is linear (revision 10, revision 11, and so on), there is no "inherent" branch and tag. Using these structure is the conventional way to do branching and tagging:
在git如此受欢迎之前,很多人使用颠覆(svn)。在颠覆中,版本控制是线性的(修订版10,修订版11,依此类推),没有“固有的”分支和标记。使用这些结构是进行分支和标记的传统方法:
awesome-repository/
trunk/
README
code.c
branches/
feature1/
README
code.c
feature2/
README
code.c
...
tags/
v0.1/
README
code.c
v0.2/
README
code.c
...
So, probably it is copied from subversion based repository to git based repository. And usually:
所以,它可能是从基于subversion的存储库复制到基于git的存储库。通常是:
-
master
branch in git is intrunk/
directory in subversion - git中的master分支在subversion中的trunk /目录中
- other branches in git are in
branches/*/
directories in subversion - git中的其他分支在subversion中的branches / * /目录中
- tags in git are in
tags/*/
directories in subversion - git中的标签位于subversion中的tags / * /目录中