CLI¶
g is a minimal CLI wrapper that proxies to your current directory’s VCS command.
How it works¶
When you run g, it:
Walks up from your current directory looking for
.git,.svn, or.hgInvokes the corresponding VCS (
git,svn, orhg) with your argumentsExits after the command completes
Note: --version/-V is handled by g itself rather than passed to the VCS.
Usage¶
$ g status
Is equivalent to:
$ git status # if in a git repo
$ svn status # if in an svn repo
$ hg status # if in an hg repo
Command¶
CLI alias for your current directory’s VCS command (git, svn, hg).
Usage¶
usage: g [-h] [--version] ...
Positional Arguments¶
- vcs_args ...¶
Arguments passed to the detected VCS (git, svn, or hg)
Options¶
- --version, -V¶
show program's version number and exit
Arguments are passed to the detected VCS (except –version/-V).
Examples¶
$ g status
$ g commit -m "Fix bug"
$ g log --oneline -10
$ g diff HEAD~1
Supported VCS¶
Directory marker |
VCS command |
|---|---|
|
|
|
|
|
|