Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Repos>Git Bulk Changes
Git Bulk Changes

Git Bulk Changes

Namoshek

|
3 installs
| (0) | Preview
Perform bulk changes in Git repositories across your Azure DevOps organization.
Get it free

Git Bulk Changes

Allows users to perform the same change in many Git repositories at once, with a dry run that needs to be reviewed before anything is written.

The extension adds a page to the collection settings that lets any user of the organization apply a change definition to every repository they select. The projects and repositories are limited to what the user already has access to.

How it works

  1. Pick the scope. Select the repositories to change from a single filterable list that spans every project you can access (each entry is labelled with its project). The list only contains repositories the signed-in user can read, so filtering matches across all of them at once.
  2. Describe the change once. A definition is a small YAML document: an ordered list of operations plus how the result should be written (writeMode, commitMessage, and pullRequest).
  3. Preview. The preview is a read-only dry run. Each repository is read, the operations are applied in memory, and you get a per-repository status with the exact unified diff and a specific reason for anything skipped or failed. Diffs are computed locally and never sent to Azure DevOps.
  4. Apply. Only after reviewing the preview and accepting the changes, they are written to the repositories. If any repository cannot be updated, it is skipped with a reason, and the rest continue independently.

Operations

Operation Behaviour
add Create a file; optionally only when it is missing.
addContent Insert text at the start, the end or a lineNumber of an existing file.
applyPatch Apply a unified Git patch across one or more text files. With allowPartial: true, files the patch cannot apply to are skipped; the operation only fails when no file would change.
delete Remove a file, or a whole directory with recursive: true; can ignore missing ones. With pathPattern, deletes every file the pattern matches.
rename Rename or move one file (content is carried over). With recursive: true, move every tracked file under from to the corresponding path under to; destination tree must be empty, roots must not overlap, up to 1,000 files.
replace Replace literal text by default. With useRegex: true, find is a JavaScript regex, $1 or $<name> in replace reference capture groups, and all matches are replaced (g is added automatically).

Path & Pattern Matching

Besides the path parameter that is exact and case-sensitive, some operations offer a pathPattern as alternative (addContent, delete and replace). Those path patterns accept a glob-style pattern (* matches inside one path segment, ** spans directories, ? one character, [a-z] a class), so one operation can fan out over every matching file in a repository.

Patterns resolve against the repository at the pinned commit. The Azure DevOps REST API has no pattern support, so matching is done client-side against a listing scoped to the pattern's literal prefix. Due to technical constraints, this operation is limited to a maximum of 500 matched files and will throw an error when a pattern matches more files.

When a pattern matches nothing, patternNoMatch decides: skip (the default, so a heterogeneous repository set stays usable) or error.

Exact paths and patterns cannot both be given at the same time, because that would make no sense and could lead to ambiguous behavior.

Other Constraints

Binary patches and file-mode changes are always rejected; with applyPatch.allowPartial: true, hunks that do not match the current file content only skip that file, and the operation fails only when every file of the patch would be skipped (zero actual changes). A file that cannot be read as text (binary, too large) is skipped with a reason instead of being mangled.

Write modes

The writeMode defines how the changes will be applied to the repositories:

  • Pull requests (writeMode: pullRequest, the default): a commit on a new source branch plus an open pull request per repository. Set pullRequest.autoMerge: true to enable Azure DevOps auto-complete; it merges only after the pull request's configured requirements pass. The optional branch key selects the base branch the pull request is merged into.
  • Direct commit (writeMode: directCommit): commit straight onto the target branch. Set the optional branch key to read from and commit to a branch other than the repository's default. Requires Contribute permission on the branch, and the changes cannot be undone from this page.

When branch is omitted, each repository's default branch is used in both modes; when it is set, repositories that do not have that branch fail with a clear reason instead of being written.

Example definition

writeMode: pullRequest # directCommit | pullRequest
commitMessage: "Add MIT LICENSE file"
pullRequest:
  branchName: add-license
  title: "Add MIT LICENSE file"
  description: "Added by the Git Bulk Changes extension."
  draft: false
  autoMerge: false
operations:
  # add a file
  - add:
      path: /LICENSE
      onlyIfMissing: true
      content: |
        MIT License
        ...
  # change file content
  - replace:
      path: /azure-pipelines.yml
      find: "pool: Azure"
      replace: 'pool: { name: "Self-Hosted", vmImages: AzureVMImage }'
      onNoMatch: skip # error | skip | createIfMissing

The extension provides a few example definitions as a starting point. Adding additional operations is straightforward and can be done by using the buttons below the editor.

Getting started

1. Install the extension

Install Git Bulk Changes from the Visual Studio Marketplace into your Azure DevOps organization.

2. Perform your first bulk change

To perform your first bulk change, follow these steps:

  • Open the collection settings from the project overview.
  • Choose Git Bulk Changes from the settings menu (section "Extensions").
  • Fill out the form, preview the changes, and apply them to the selected repositories.

Permissions

The extension requests the following OAuth scopes on behalf of the signed-in user:

Scope Purpose
vso.code Required to read repositories and their contents
vso.code_write Required to write changes to repositories (create commits and pull requests)
vso.project Required to read accessible projects (required for listing repositories)

All calls go directly to the Azure DevOps REST API with the signed-in user's OAuth token. There is no server component and no service principal. Since the extension only lives in an iframe in the browser, it cannot perform any actions beyond what the signed-in user is permitted to do and it will never leak any data to a third party.

Limitations

  • Git repositories only; TFVC repositories (and disabled repositories) are not supported.
  • Text files up to 1 MiB are processed; larger or binary files are skipped to prevent performance issues.

Screenshots

Preview

Apply Confirmation

Change Details Overview

Change Details Diff

History

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft