git-url-sub
« Back to VersTracker
Description:
Recursively substitute remote URLs for multiple repos
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: git automation devops cli repository
Install: brew install git-url-sub
About:
GitUrlSub is a command-line utility that recursively scans directories containing Git repositories and modifies their remote URLs based on substitution rules. It streamlines the process of bulk-updating remotes, such as migrating from HTTPS to SSH or switching hosting providers. This tool saves significant time for developers managing multiple repositories.
Key Features:
  • Recursive directory scanning for repositories
  • Pattern-based URL substitution
  • Bulk processing of multiple repos at once
  • Dry-run mode for safe testing
Use Cases:
  • Migrating all personal repos from GitHub HTTPS to SSH authentication
  • Switching remotes from a deprecated Git host to a new one
  • Standardizing remote URL formats across a large organization
Alternatives:
  • git remote set-url – Built-in command requires manual updates per repo; GitUrlSub automates this for many repos.
  • sed – Generic stream editor lacks Git-specific logic and safety checks for remote operations.
Version History
Detected Version Rev Change Commit