“Master branch”指版本控制系统(尤其是 Git)中默认的主分支名称,传统上用于存放项目的主要(通常是稳定、可发布)的代码历史。近年许多项目已将默认分支改为“main”,但“master branch”在旧项目与历史文档中仍常见。
/ˈmæs.tɚ brɑːntʃ/
I pushed my changes to the master branch.
我把修改推送到了 master 分支。
After reviewing the pull request, the team merged the feature branch into the master branch and tagged a new release.
在审查拉取请求后,团队将功能分支合并进 master 分支,并打了一个新的发布标签。
“Branch”在版本控制里表示“分支”(一条独立的提交历史线)。早期许多 Git 仓库把默认主分支命名为“master”,表达“主要/主控分支”的含义。随着行业对命名的包容性与中性表达更重视,“main”逐渐成为更常用的新默认名称;但“master branch”作为历史术语仍被广泛保留和理解。