Me too! Though yours looks fancier, is that jumping to a branch? lovely.
glo () {
xdg-open https://git.thecompany.com/$(git config remote.origin.url |cut -f2 -d: |cut -f1 -d.)
}
Re:Ask HN: Can I see your scripts?
by hugolundin on Sunday August 21, 2022 @05:56AM
(#32538727)
I use git-open [1] for this – highly recommended. It supports multiple remotes and works great with custom hosted servers out of the box.
Use it everyday. Great because my company has multiple git submodules in any given project and I can use this to watch for pipeline failures and the like.