gitweburl 0.1.3
Welcome to git_web_url Documentation
git_web_url is a CLI tool and also a Python library can print the url of a local file in a git repo so you can one-click to open it in web browser.
Currently it supports:
GitHub
GitHub Enterprise
GitLab
GitLab Enterprise
BitBucket
BitBucket Enterprise
AWS CodeCommit
Usage Example
Auto-discover the git repo:
cd into your git repo directory, or any folder inside, then run gwu, it prints the url for the current branch and the current directory:
$ gwu # or gitweburl
https://github.com/your_account/your_repo/tree/your_branch/path/to/current_directory
Explicitly specify the file or folder:
copy the absolute path of the file or folder in your local git repo, then run gwu ${absolute_path_here}:
$ gwu /Users/myusername/GitHub/your_repo/path/to/your_file
https://github.com/your_account/your_repo/tree/your_branch/path/to/current_directory
Install
git_web_url is released on PyPI, so all you need is to:
$ pip install git-web-url
To upgrade to latest version:
$ pip install --upgrade git-web-url
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.