GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vcs-python/g: g: Sync your current directories VCS (or reach for one via `--cwd`)

BranchesTags
Open more actions menu

Latest commit

 

History

882 Commits
882 Commits

Folders and files

NameName
Last commit message
Last commit date
.cursor/rules
.cursor/rules
 
 
.github
.github
 
 
.vim
.vim
 
 
docs
docs
 
 
src/g
src/g
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
.python-version
.python-version
 
 
.tmuxp.yaml
.tmuxp.yaml
 
 
.tool-versions
.tool-versions
 
 
.windsurfrules
.windsurfrules
 
 
AGENTS.md
AGENTS.md
 
 
CHANGES
CHANGES
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
conftest.py
conftest.py
 
 
justfile
justfile
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

$ g

Passthrough to your current directory's VCS.

Python Package Docs Build Status Code Coverage License

A command-line shortcut that runs your current directory's VCS command, whether it's git, subversion (svn), or mercurial (hg). Requires Python 3.11 or newer.

Install

$ pip install --user g

Or install with uv:

$ uv tool install g

Working inside a uv-managed project:

$ uv add g

For one-off use without installing globally:

$ uvx g
$ g

Developmental releases

You can test the unpublished version of g before its release.

  • pip:

    $ pip install --user --upgrade --pre g
  • uv:

    $ uv tool install --prerelease=allow g
    $ uv add g --prerelease allow
    $ uvx --from 'g' --prerelease allow g
  • pipx:

    $ pipx install --suffix=@next g --pip-args '\--pre' --force

    Then use g@next --help.

Usage

$ g status

Inside a git checkout, that runs git status; inside svn, svn status; inside mercurial, hg status. g intercepts only -V/--version — everything else, including -h/--help, forwards straight to the detected VCS. The VCS's own stdout and stderr print through unchanged, but g's exit status does not mirror the wrapped command's: a completed run always exits 0. Outside a VCS directory, g prints No VCS found in current directory. to stderr and stops.

Full detection order and command reference: https://g.git-pull.com/cli/index.html.

Credits

2021-12-05: Thanks to John Shanahan (@_shanahanjrs) for giving g use g

Donations

Your donations fund development of new features, testing and support. Your money will go directly to maintenance and development of the project. If you are an individual, feel free to give whatever feels right for the value you get out of the project.

See donation options at https://tony.sh/support.html.

More information

  • Python support: >= 3.11
  • VCS supported: git(1), svn(1), hg(1)
  • Source: https://github.com/vcs-python/g
  • Docs: https://g.git-pull.com
  • Changelog: https://g.git-pull.com/history.html
  • API: https://g.git-pull.com/api.html
  • Issues: https://github.com/vcs-python/g/issues
  • Test Coverage: https://codecov.io/gh/vcs-python/g
  • pypi: https://pypi.python.org/pypi/g
  • Open Hub: https://www.openhub.net/p/g
  • License: MIT.

About

g: Sync your current directories VCS (or reach for one via `--cwd`)

g.git-pull.com

Topics

clisyncvcs

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

3 stars

Watchers

0 watching

Forks

1 fork
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.