{"id":20427007,"url":"https://github.com/jasursadikov/mud","last_synced_at":"2026-04-12T02:04:35.422Z","repository":{"id":214484026,"uuid":"736641658","full_name":"jasursadikov/mud","owner":"jasursadikov","description":"🗃️ Multi repository git utility. Manage multiple git-repositories simultaneously.","archived":false,"fork":false,"pushed_at":"2025-03-11T09:54:14.000Z","size":1341,"stargazers_count":21,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T19:09:51.038Z","etag":null,"topics":["cli","git","git-cli","git-scm","multi-git","multi-repo"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasursadikov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-28T13:09:31.000Z","updated_at":"2025-03-26T08:19:08.000Z","dependencies_parsed_at":"2023-12-28T13:57:55.106Z","dependency_job_id":"e294a00a-a2b7-410e-b115-2cc7f980cbb2","html_url":"https://github.com/jasursadikov/mud","commit_stats":null,"previous_names":["jasursadikov/mud"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasursadikov%2Fmud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasursadikov%2Fmud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasursadikov%2Fmud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasursadikov%2Fmud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasursadikov","download_url":"https://codeload.github.com/jasursadikov/mud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618277,"owners_count":21134200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","git","git-cli","git-scm","multi-git","multi-repo"],"created_at":"2024-11-15T07:18:27.294Z","updated_at":"2026-04-12T02:04:35.417Z","avatar_url":"https://github.com/jasursadikov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mud\n\n![Version](https://img.shields.io/pypi/v/mud-git?logo=python)\n![AUR Version](https://img.shields.io/aur/version/mud-git?logo=archlinux)\n[![Test projects integrity](https://github.com/jasursadikov/mud/actions/workflows/test.yaml/badge.svg)](https://github.com/jasursadikov/mud/actions/workflows/test.yaml)\n[![Publish Python Package](https://github.com/jasursadikov/mud/actions/workflows/publish-pypi.yaml/badge.svg)](https://github.com/jasursadikov/mud/actions/workflows/publish-pypi.yaml)\n[![Publish to AUR](https://github.com/jasursadikov/mud/actions/workflows/publish-aur.yaml/badge.svg)](https://github.com/jasursadikov/mud/actions/workflows/publish-aur.yaml)\n\n![Demo](./img.png)\n\nmud is CLI utility that allows you to run git commands in multiple repositories. It has multiple powerful filtering tools, native commands with an informative terminal output and support of aliasing. This tool is not limited to git commands only; you can run any commands you wish. However, this tool was primarily designed to be used with git, so each referenced directory should have a `.git` directory.\n\n## Installing\n**PyPI**\n```bash\npip install mud-git\n```\n**ArchLinux**\n```bash\nparu -S mud-git\n```\n\nFor requirements check [requirements.txt](requirements.txt).\n\n## Getting started\n\n1. Run `mud config` to start an interactive wizard that helps you set the preferred settings. Check the [settings](#settings) section for more details. At the end, a `.mudsettings` file will appear in your home directory, which you can modify in the future.\n2. Navigate to your preferred directory with repositories.\n3. Run the `mud init` command to create a `.mudconfig` file. This file is important for keeping references to repositories. All repositories in the current directory will be included in `.mudconfig`.\n4. Optional: Run [`mud set-global`](#commands) to make the current configuration default and accessible from any directory.\n\nAll entries are stored in `.mudconfig` in TSV format. After making your first entry, you can open `.mudconfig` in a text editor and modify it according to your needs.\n\nNow you're able to run any command. Some examples:\n```bash\n# Fetch all repositories\nmud git fetch\n# Switching all repositories to a \"master\" branch\nmud git checkout master\n# Alternatively, you can filter only repos on non-master branch and switch them to master\nmud --not-branch=master git checkout master\n# Pull all diverged branches\nmud --diverged git pull\n```\n\n## Using\n\n### Commands\n| Command                         | Description                                                                                                                       |\n|---------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `mud set-global`                | sets the current `.mudconfig` as a global configuration so it will be used as a fallback configuration to run from any directory. |\n| `mud get-config`                | prints the current `.mudconfig` location.                                                                                         |\n| `mud prune`                     | removes all invalid repositories from the `.mudconfig`.                                                                           |\n| `mud info`/`mud i`              | displays branch divergence and working directory changes.                                                                         |\n| `mud status`/`mud st`           | displays working directory changes.                                                                                               |\n| `mud log`/`mud l`               | displays the latest commit message, its time, and its author.                                                                     |\n| `mud labels`/`mud lb`           | displays mud labels across repositories.                                                                                          |\n| `mud branches`/`mud br`         | displays all branches in repositories.                                                                                            |\n| `mud remote-branches`/`mud rbr` | displays all remote branches in repositories.                                                                                     |\n| `mud complete-branch`           | prints unique current branch names across repositories for shell completion.                                                      |\n| `mud complete-branch-all`       | prints unique local and remote branch names across repositories for shell completion.                                             |\n| `mud tags`/`mud t`              | displays git tags in repositories.                                                                                                |\n\n### Flags\n\n`mud \u003cFLAG\u003e \u003cCOMMAND\u003e` will execute a bash command across all repositories.\n\n| Flag                                     | Description                                                                          |\n|------------------------------------------|--------------------------------------------------------------------------------------|\n| `-n=\u003cstr\u003e` or `--name=\u003cstr\u003e`             | includes repositories that contains provided string.                                 |\n| `-l=\u003clabel\u003e` or `--label=\u003clabel\u003e`        | includes repositories with the provided label.                                       |\n| `-L=\u003clabel\u003e` or `--not-label=\u003clabel\u003e`    | excludes repositories with the provided label.                                       |\n| `-b=\u003cbranch\u003e` or `--branch=\u003cbranch\u003e`     | includes repositories with the provided branch.                                      |\n| `-B=\u003cbranch\u003e` or `--not-branch=\u003cbranch\u003e` | excludes repositories with the provided branch.                                      |\n| `-c` or `--command`                      | explicit command argument. Use this whenever you're trying to run a complex command. |\n| `-m` or `--modified`                     | filters out modified repositories.                                                   |\n| `-d` or `--diverged`                     | filters repositories with diverged branches.                                         |\n| `-t` or `--table`                        | toggles the default table view setting for execution.                                |\n| `-a` or `--async`                        | toggles the asynchronous execution feature.                                          |\n\nExample:\n\n```bash\n# Filters out all repos with the master branch and diverged branches and then runs the pull command.\nmud -b=master -d git pull\n\n# Fetches all repositories that are not on the master branch and have the \"personal\" label, excluding those with the \"work\" label.\nmud -B=master -l=personal -L=work git fetch\n```\n\nCompletion helpers:\n\n```bash\n# Menu for -b= and -B= suggestions\nmud complete-branch\n\n# Full unique branch menu suitable for commands like \"mud to \u003cbranch\u003e\"\nmud complete-branch-all\n```\n\n## Settings\n\nSettings are stored at `~/.config/mud/settings.ini`.\n\n| Key                      | Value                    | Description                                                                      |\n|--------------------------|--------------------------|----------------------------------------------------------------------------------|\n| `run_async`              | `True`/`False`           | enables asynchronous commands.                                                   |\n| `run_table`              | `True`/`False`           | enables table view for asynchronous commands. Requires `run_async`.              |\n| `nerd_fonts`             | `True`/`False`           | enables nerd fonts in the output.                                                |\n| `display_borders`        | `True`/`False`           | enables borders in the table view.                                               |\n| `display_headers`        | `True`/`False`           | enables headers in the table view.                                               |\n| `display_absolute_paths` | `True`/`False`           | displays absolute paths for directories.                                         |\n| `round_corners`          | `True`/`False`           | enables round corners for the table view. Requires `show_borders` to be enabled. |\n| `collapse_paths`         | `True`/`False`           | simplifies branch names in the branch view.                                      |\n| `config_path`            | `~/Documents/.mudconfig` | this is set by the `mud set-global` command.                                     |\n\n### Aliases\n\nYou can create your own aliases. To do so, edit the `[alias]` section of the `.mudsettings` file. The `.mudsettings` file has the following aliases by default:\n```ini\n[alias]\nto = git checkout\nfetch = git fetch\npull = git pull\npush = git push\n```\n\n## Labeling\n\nYou can modify your `.mudconfig` file using the following commands:\n\n| Command                     | Description                                    |\n|-----------------------------|------------------------------------------------|\n| `mud add \u003cpath\u003e`            | adds a path without a label.                   |\n| `mud add \u003cpath\u003e \u003clabel\u003e`    | adds a path with an optional label.            |\n| `mud remove \u003cpath\u003e`         | removes the directory with the specified path. |\n| `mud remove \u003cpath\u003e \u003clabel\u003e` | removes the label from a directory.            |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasursadikov%2Fmud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasursadikov%2Fmud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasursadikov%2Fmud/lists"}