简体   繁体   中英

project structure from subversion to git

我有一个典型的主干/标签 subversion 存储库结构,现在转向 git 想知道典型/传统/已知结构是什么,与 subversion 相同?

Tags and branches in git are not reflected as part of the file tree in the repository. The tree stored in the repository would most closely correspond to what is stored in the trunk directory of a typical svn repository.

Most conversion tools would translate the svn trunk into a git branch named master , which is the traditional name for the main branch in git. But, unlike in the traditional svn layout, there is nothing special (to git) about the master branch.

Tags in git are normally stored in yet a different way. They would be manipulated using the git tag command. They are similar to branches, but git makes it difficult to update a tag after it has been created. Because there is nothing preventing modification of tags in a standard svn repository, tools for converting that to git will often convert svn tags into git branches with names indicating that they're from tags rather than creating git tags; but git tags can be created at a later point based on those branches.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM