gitas
This tool has two features:
- display the status of multiple git repos side by side
- delegate shell commands on multiple git repos
Unlike gita, it does not require maintenance of repositiories' list. It works on all repos found recursively in the given path.
Additionally, issuing gitas status
command with -q
flag makes gitas query the remote for sync status. This reveals the need for git fetch
. This flag requires network connection and may be time consuming.
1. gitas status
Show status of each git repository found in PATH
gitas status [PATH] [flags]
1.1. Examples
gitas status ~ --name=p -b=true -o=n
gitas status
gitas status /home --time=false
See also markdown and json example results.
1.2. Flags
-n, --name {u|p|s} name shown: unique|path|short (default u)
-t, --time time of last commit shown (default true)
-f, --format {r|i} format time: relative|iso (default r)
-b, --branch branch shown
-q, --query query fetch needed (implies -br)
-r, --remote remote shown
-l, --url url shown
-d, --dirty dirty shown (default true)
-u, --untracked untracked shown
-s, --stash stash shown
-o, --order {t|n} order: time|name (default t)
-e, --emit {t|j|m} emit format: table|json|markdown (default t)
-h, --help help for status
1.3. Flags inherited from parent commands
--logging int logging level [0...3] (default 0)
2. gitas shell
Execute "command" for each git repository found in PATH
gitas shell [PATH] "command" [flags]
2.1. Examples
gitas shell /home "ls"
gitas shell ~ "git describe --abbrev=0 --tags"
gitas shell "ls | grep 'P'"
2.2. Flags
-h, --help help for shell
2.3. Flags inherited from parent commands
--logging int logging level [0...3] (default 0)
3. Build
goreleaser build --clean
For more information check BUILD.md
4. License
gitas
was created by Lukasz Lobocki. It is licensed under the terms of the CC0 v1.0 Universal license.
Inspired by gita.
All components used retain their original licenses.
5. Credits
gitas
was created with cookiecutter and template.