返回命令列表

Linux command

mr 命令

文本

Copy it and replace filenames, paths, or keywords as needed.

命令示例

Update every registered repo

mr update

Check the status of every repo

mr status

Commit changes

mr commit -m "[message]"

Register the current repo

mr register

Run an arbitrary command

mr run [git fetch]

Run only on a repo in the current directory subtree

mr -d [.] status

List configured repositories

mr list

Bootstrap a new checkout from a shared `.mrconfig`

mr checkout

Use a non-default config file

mr -c [/path/to/mrconfig] update

Run sequentially

mr -s update

说明

mr (myrepos) orchestrates version-control operations across a heterogeneous collection of repositories. It reads per-repo action definitions from one or more `.mrconfig` files and runs them, so a single `mr update` can pull dozens of git repos, an svn checkout, and a mercurial clone in one go. Parallel execution (`-j`), timeouts (`-t`), and per-repo `skip` rules make it practical on large fleets.

参数

-c _CONFIG_
Use _CONFIG_ instead of `$HOME/.mrconfig`.
-d _DIR_
Operate only on the repository at _DIR_ (or the closest enclosing one).
-t _SECONDS_
Timeout each sub-command after _SECONDS_.
-j _N_
Run _N_ jobs in parallel (default 1, `-j0` = unlimited).
-s
Stop on first error (also serialize when using `-j`).
-i
Interactive: prompt before each action.
-n
Limit recursion: only act on repos whose path is under the current directory.
-p _DIR_
Chdir to _DIR_ before running.
-f
Force action even on repos that are marked `skip`.
-v
Verbose.
-q
Quiet: suppress standard output from mr and its children.
-m
Commit message (for `commit`).
--version
Show version.
--help
Show help.

FAQ

What is the mr command used for?

mr (myrepos) orchestrates version-control operations across a heterogeneous collection of repositories. It reads per-repo action definitions from one or more `.mrconfig` files and runs them, so a single `mr update` can pull dozens of git repos, an svn checkout, and a mercurial clone in one go. Parallel execution (`-j`), timeouts (`-t`), and per-repo `skip` rules make it practical on large fleets.

How do I run a basic mr example?

Run `mr update` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _CONFIG_ do in mr?

Use _CONFIG_ instead of `$HOME/.mrconfig`.