Skip to main content

Browse the GitHub repository with the browser

Project description

git-browse-remote

Browse the GitHub repository with the browser from CLI

This module is inpired by git-browse-remote gem but has limited features, which I use on daily, than the gem.

Supported environments

  • Python >= 3.12
  • GitHub (and repositories that have compatible URL structure with GitHub, e.g. GitHub enterprise)

This tool executes $ git web--remote to open a URL. To change the browser to be used, see git-web--browse documentation.

Usage

Install

$ pipx install git-browse-remote

PyPI: https://pypi.org/project/git-browse-remote/

Open the PR url for the current branch

$ git browse-remote -p # e.g. https://github.com/nonylene/git-browse-remote/pull/{current_branch}

Open the blob/tree url for the path of the current branch

$ git browse-remote {path} # e.g. https://github.com/nonylene/git-browse-remote/tree/{current_branch}/{path}

Development

# Install dependencies
$ poetry install
# Run
$ poetry run git-browse-remote --help
# Test
$ poetry run python3 -m unittest
# Coverage
$ poetry run coverage run -m unittest
$ poetry run coverage report -m

Release

  • Bump up version in pyproject.toml
  • git tag v{version}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_browse_remote-0.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

git_browse_remote-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file git_browse_remote-0.1.1.tar.gz.

File metadata

  • Download URL: git_browse_remote-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for git_browse_remote-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ac56cb9172f375d351fa8448df4066442488b780ddeac8a468261bb1e3280925
MD5 5c3ba544b9ee168ae654724e2675c72a
BLAKE2b-256 eb4475b6bd3cf4381607888d4398f003bc748e35a5c839beab29b4ed2da18311

See more details on using hashes here.

File details

Details for the file git_browse_remote-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: git_browse_remote-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for git_browse_remote-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb2ab13427c9ddd0af6216132fe1ba96f06bf8c8df146394e865400de6eb030d
MD5 aea44973d9cd5f2e32a80edf70073c08
BLAKE2b-256 45dde66bf4f16265027392e4c8a2bf94002c8ff5176f43a0c1431f7340353f54

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page