https://github.com/mrsauravsahu/gitremotetourl
Converts git's remote url to a valid url to open in the browser.
https://github.com/mrsauravsahu/gitremotetourl
cli github highlighted javascript
Last synced: about 1 year ago
JSON representation
Converts git's remote url to a valid url to open in the browser.
- Host: GitHub
- URL: https://github.com/mrsauravsahu/gitremotetourl
- Owner: mrsauravsahu
- License: mit
- Created: 2018-01-26T06:22:18.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T02:21:25.000Z (almost 3 years ago)
- Last Synced: 2025-03-24T20:21:20.729Z (over 1 year ago)
- Topics: cli, github, highlighted, javascript
- Language: JavaScript
- Homepage: https://npmjs.com/git-remote-to-url
- Size: 580 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **gitRemoteToUrl**
Converts `git remote get-url origin` to a valid url to open in the browser.
### Clone or install via npm
`npm install -g git-remote-to-url`
or
`yarn global add git-remote-to-url`
### Use the cli tool
Run ```grtu``` in a git directory to get the remote url
or
Run ```grtu ``` to get the url for the specified location
### Open the url in a browser
Pass ``` `grtu` ``` as an argument to other programs.
Example run
```
open `grtu .`
# to open the url in your browser on Mac
```
```
gnome-open `grtu .`
# to open the url in your browser on Ubuntu
```