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.11
  • 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.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: git_browse_remote-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 1f1e6b928dfc710c860c8d23391701a5f30847dad31d31c19d5e0c1781625d70
MD5 d0566368d561dfbe938f8029d45fb10d
BLAKE2b-256 23e4d90773995f84b45d89cec3437baa313d04a7769dbdc7280b66ac14067810

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_browse_remote-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb84a2694ee31001c2fd10ad435c5ece2f7d66ab980b3c97ef57c928bbb7c89b
MD5 6ae00af7014396b43ef7164c4cebf9c0
BLAKE2b-256 0e6011c0240b048d380182a3759ba0854b1077c1abe694fc6960b69363b4f18a

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