기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

이 페이지는 선택한 언어로 제공되지 않습니다.
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
  • On-Prem
    • Server configuration
    • Client configuration
    • Manage On-Prem licenses
    • Stop, start, or restart server
    • Server administration console
    • Configure UVCS
      • Server configuration files
      • Configure lock rules
      • Merge rules
        • Set up merge rules
        • Types of merge rule
      • Configure file compression
      • Proxy servers
      • Use a proxy server
      • Support alternative connections to a server
      • Configure repository storage
    • Use server read-only mode
    • Back up and restore data
    • Archive revisions
    • Force client upgrades
    • SSL certificates
    • GitServer
    • Use SAML authentication with Microsoft Entra
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Types of merge rules

Explore the types of merge rules.
읽는 시간 2분
최근 업데이트: 10달 전

Learn what merge rules are available and refer to examples on how you can apply them. Find more information on how to set up merge rules.

Only allow reviewed merges

To only allow users to merge branches if they have an approved code review, use the following rule:
only_allow_merges_if_reviewed

only_allow_merges_if_reviewed
example

The following example applies to all repositories and ensures that all branches that follow the naming pattern
QUAK-*
need an approved review before they merge to the
main
branch:
[{ "enabled": true, "repositories": "*", "rule": "only_allow_merges_if_reviewed", "to": { "branchNames": ["main"] }, "from": { "branchNames": ["QUAK-*"], }}]

Restrict merges to a branch

To ensure that merges to a specific branch can only come from a defined set of branches, use the following rule:
restrict_merges_to_branch

restrict_merges_to_branch
example

The following example applies to only the
examplerepo
repository. The merge rule ensures that only merges from source branches named
fixes-*
can merge to the destination branch
/fix3.0
:
[{ "enabled": true, "repositories": "examplerepo", "rule": "restrict_merges_to_branch", "to": { "branchNames": ["/fix3.0"], }, "from": { "branchNames": ["fixes-*"], }}]

Only allow merges from a parent branch

To only allow merges to a given branch if the merge is from its parent branch, use the following rule:
only_allow_merges_from_parent

only_allow_merges_from_parent
example

The following example applies to repositories that match the name
game*
. This rule ensures that any branches that match the name
task*
can only receive merges from a parent branch:
[{ "enabled": true, "repositories": "game*", "rule": "only_allow_merges_from_parent", "to": { "branchNames": ["task*"], }}]

Only allow merges from a child branch

To only allow merges to a given branch if the merge is from its child branches, use the following rule:
only_allow_merges_from_children

only_allow_merges_from_children
example

The following example applies to repositories that match the name
game*
. This rule ensures that any branches that match the name
iteration*
can only receive merges from their child branches.

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Only allow reviewed merges

      • only_allow_merges_if_reviewed example

    • Restrict merges to a branch

      • restrict_merges_to_branch example

    • Only allow merges from a parent branch

      • only_allow_merges_from_parent example

    • Only allow merges from a child branch

      • only_allow_merges_from_children example


이 페이지의 문제 보고