You can rename the master branch trunk as Greg has suggested, or you can also create a trunk that is a symbolic reference to the master branch so that both git and svn users have the 'main' branch that they are used to.
git symbolic-ref refs/heads/trunk refs/heads/master
Note that trunk isn't a first class citizen. If you checkout trunk and perform a git status you will actually be on master, however you can use the trunk command in all places that you use the branch name (log, merge, etc.).
本文介绍了如何在Git中重命名主分支为trunk,或者创建一个指向主分支的符号引用,以满足不同用户的需求。讨论了trunk作为非正式分支的特性,并解释了如何使用trunk命令在所有需要分支名的地方进行操作。同时,文章还探讨了此设置在服务器上的可见性问题,以及符号引用在克隆和推送操作中的表现。






