Extract https url from git remote
command and execute open
command.
$ open $(git remote --verbose | head -n 1 | awk '{ print $2 }')
open
command availablegit remote --verbose
has https protocol URL like below example.
origin https://github.com/YumaInaura/gist (fetch)
origin https://github.com/YumaInaura/gist (push)
Create simple text file.
echo 'https://github.com/YumaInaura/gist' >> .github.url
open $(cat .github.url)
If you commited this file to git, you can open Github webpage anytime from console.