tidy
Organize your git repositories using the configured format.
This will offer to organize your git repositories, moving them from their current path to the path they should be at
if they had been cloned using omni clone
. This is useful if you have a bunch of repositories that you have cloned
manually, and you want to start using omni, or if you changed your mind on the repo path format you wish to use.
This will also download any package in your global omnipath that is not yet downloaded.
Parameters
Parameter | Required | Value type | Description |
---|---|---|---|
--yes | no | null | Do not ask for confirmation before organizing repositories |
--search-path | no | string | Extra path to search git repositories to tidy up (repeat as many times as you need) |
--up-all | no | null | Run omni up in all the repositories with an omni configuration; any argument passed to the tidy command after -- will be passed to omni up |
Examples
# Simply search the known worktrees, ask for confirmation before doing anything
omni tidy
# Simply search the know worktrees, just organize everything that needs organizing
omni tidy --yes
# Search git repositories in another path
omni tidy --search-path ~/previous-git
# Search the known worktrees, ask for confirmation before doing anything;
# then run `omni up` in all the repositories with an omni configuration
omni tidy --up-all
# Search the known worktrees, ask for confirmation before doing anything;
# then run `omni up --update-repository` in all the repositories with an
# omni configuration
omni tidy --up-all -- --update-repository