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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: git_browse_remote-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 67604e3dc30587727481b3b384ce956c07484c2eb7f93c7b18533a819bd53b2f
MD5 8ef3886bc123025e2aaacb0e0f73f532
BLAKE2b-256 792d35b87f1a28d5c749f617fbb0f881e8f415e1076a620d149df4aabe28e758

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_browse_remote-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a1c4bb8e9dc65cd6967796f5d603f2b392bb977cd2ae1be18e0556d5854d2f2
MD5 ce335a9e2ab6e37c34123320bf5c4ffd
BLAKE2b-256 d32ed21862beea7076f2e4f82da172534fc2f5572766eec207182c5d2851db49

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