Skip to main content

No project description provided

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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: git_browse_remote-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 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.0.tar.gz
Algorithm Hash digest
SHA256 eacf2631d191583488e8ed355de4efaba4a45f34436a61c3652c2a08b78db9a0
MD5 a8774fdc125bba41126a9d45d813585c
BLAKE2b-256 aa7f63fbc3752005d1d9a626740e41ea0e70e0a39cf75b880b5e01f07b042b1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: git_browse_remote-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8205ce1b0bcb92923381bef492f8c9db774e7468669d4d242a3d3c1955b4364f
MD5 a9c1c8e4f9bdcafafb0a74b755243b39
BLAKE2b-256 d5b53c2c2279b3febca15cd193d8c560be0b5f5c2bf7b9bbbd096e301037cfd3

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