Skip to content

Converts git's remote url to a valid url to open in the browser.

License

Notifications You must be signed in to change notification settings

mrsauravsahu/gitRemoteToUrl

Folders and files

NameName
Last commit message
Last commit date
Mar 6, 2023
Oct 5, 2018
Sep 12, 2019
Sep 12, 2019
Jan 26, 2018
Jan 26, 2018
Jan 28, 2018
Mar 6, 2023
Sep 12, 2019
Jan 19, 2020
May 1, 2021
Jan 27, 2018
Oct 5, 2018
Jan 27, 2018
Jan 27, 2018
Mar 6, 2023
Mar 6, 2023

Repository files navigation

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 <location> 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