Skip to content
moqsien edited this page Jan 21, 2024 · 2 revisions

See info below:

moqsien@moqsiendeiMac ~ % g g -h
Git related CLIs(especially with a proxy).

Usage:
   git [command]

Aliases:
  git, g

Available Commands:
  clone            Clones a remote repo.
  commit-push      Commits and pushes to a remote repo.
  detag-push       Deletes a tag and pushes to a remote repo.
  install          Installs git for windows.
  lazygit          Start lazygit with/without an ssh proxy.
  proxy            Sets a proxy for your git.
  pull             Pulls from a remote repo.
  push             Pushes to a remot repo.
  ssh-proxy-fix    Adds proxy info to the ssh config file.
  tag-latest       Shows the latest tag of a local repo.
  tag-push         Adds a tag and pushes to a remote repo.
  toggle-ssh-proxy Toggle status of the proxy for ssh.

Flags:
  -h, --help   help for git

Use " git [command] --help" for more information about a command.

There are basically four kinds of subcommands:

  • Git commands make use of go-git. Among these are "clone", "commit-push", "detag-push", "pull", "push", "tag-latest", "tag-push". These subcommands are totally git independent.

  • Proxy related. "proxy" will set a local proxy, then the go-git-related subcommands can use it. "ssh-proxy-fix" will make the proxy in use for ssh proto. "toggle-ssh-proxy" enables/disables the "ssh proxy fix".

  • Full features from lazygit v0.40.2 by subcommand "lazygit". Note that, lazygit depends on git.

  • Installation of git for windows by subcommand "install".

Clone this wiki locally