|
35 | 35 | - **Project Admins**: Create, delete and rename repositories. |
36 | 36 | - You can modify permissions in each group. |
37 | 37 |
|
38 | | -#### Branch policies |
| 38 | +### Branch policies |
39 | 39 |
|
40 | 40 | - ***Require minimum number of reviewers*** for pull requests |
41 | 41 | - ***Check for linked work items***: Enforce traceability to check for linked work items on PR's |
|
52 | 52 | - completing pull requests |
53 | 53 | - or pushing |
54 | 54 |
|
| 55 | +### Branch locks |
| 56 | + |
| 57 | +- Block updates to a Git branch by preventing |
| 58 | + - Other users from changing the existing commit history |
| 59 | + - Any new commits from being added to the branch by others |
| 60 | +- 💡 Use with [branch policies](#branch-policies) and pull requests to ensure no changes are being done without review/approval |
| 61 | +- Locks can be removed by |
| 62 | + - The user who locked the branch |
| 63 | + - User with ["Remove Other's Lock permissions"](https://docs.microsoft.com/en-us/azure/devops/repos/git/set-git-repository-permissions?view=azure-devops#git-repository) |
| 64 | +- 👀 Read more: [Microsoft Docs](https://docs.microsoft.com/en-us/azure/devops/repos/git/lock-branches) |
| 65 | + |
| 66 | +## Repository settings |
| 67 | + |
| 68 | +- Validates commit information against given patterns or limits |
| 69 | +- Can be found on portal: "Project settings -> Repositories" |
| 70 | +- Include |
| 71 | + - Commit author email validation |
| 72 | + - File path validation |
| 73 | + - Case enforcement by blocking that change name casing on paths/branches/tags |
| 74 | + - Reserved names by blocking reserved names/incompatible characters |
| 75 | + - Maximum path length |
| 76 | + |
55 | 77 | ## Authenticating with Git |
56 | 78 |
|
57 | 79 | - You can authenticate using: |
58 | 80 | - [SSH](https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate) |
| 81 | + - SSH authentication can be disabled on organization level with [organization settings](https://docs.microsoft.com/en-us/azure/devops/organizations/settings/about-settings?view=azure-devops#user-settings) |
59 | 82 | - [Git Credential Managers](https://docs.microsoft.com/en-us/azure/devops/repos/git/set-up-credential-managers?view=azure-devops) |
60 | 83 | - 💡 Recommended |
61 | 84 | - Supports MFA |
|
0 commit comments