Someone has share this source code with me. Which include three folders .Git, branches and 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.
Thanks!
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:
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 :
master
branch in git is in trunk/
directory in subversion branches/*/
directories in subversion tags/*/
directories in subversion
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.