Manage many git repos with sanity 从容管理多个git库
gita ll
#87gita context
, gita clone
, and gita flags
~/.config/gita/cmds.yml
by ~/.config/gita/cmds.json
. If no custom command exists, nothing needs to be done. Otherwise change the content accordingly. For example,stat:
cmd: git diff --stat
help: show edit statistics
should be replaced by
{
"stat":{
"cmd": "git diff --stat",
"help": "show edit statistics"
}
}
~/.config/gita/info.yml
to ~/.config/gita/info.csv
. To upgrade, user needs to rename the file (if it exists) and change the content. For example- branch
- commit_msg
- commit_time
changes to
branch,commit_msg,commit_time
~/.config/gita/colors.yml
to ~/.config/gita/colors.csv
. To upgrade, user needs to gita color set
the desirable colors.~/.config/gita/groups.csv
from being overwritten in testingflags
usage--preserve-path
option to gita clone
command so that repos will be cloned to the preset pathsgita flags
sub-command which sets per-repo custom git flags~/.config/gita/cmds.yml
~/.config/gita/groups.yml
config file by ~/.config/gita/groups.csv
. To upgrade, user needs to change the file name and also the content. For example,home: [blog, dotfiles, gita, resume]
changes to
home:blog dotfiles gita resume
commit_time
information itemgita
is run inside main reposgita ll
~/.config/gita/repo_path
to ~/.config/gita/repos.csv
. To upgrade, user needs to rename the existing file accordingly.freeze
when the repo has no remote URLgita ll -n
to gita ll -C
for disable coloringgita color set <situation> <color>
command to change the coloring scheme of local/remote relationshipgita freeze
to show URL, name, and path of all reposgita clone <config-file>
to clone repos to cwdgita shell
command to run shell commandsdescription
instead of help
for subparser)gita group rmrepo
command to remove repo(s) from a groupHEAD
when a tag is checked out-r
option for recursive adding repos in given pathsungroup
sub-command, and clean up group
sub-command by adding ll
, add
, rm
sub-sub-commandscontext
sub-command--name
to the gita group add
command and no longer ask for user inputgita group ls
commandgita group rename
command--no-colors
for gita ll
commandgita color
sub-command to display current color scheme