The gito alias

Mar 10, 2021 • One minute to read

gito matrix

I often need to open a repo’s webpage to look at PRs, get code reference to others and many other reasons.
So I created an alias that makes navigating from my terminal to the repo’s webpage super easy.

A coworker actually showed me part of this.
He had an alias that echoed the repo’s url.
So I thought, “oh, I can make a command that opens a browser window with that output!”

the git command to get the url is pretty simple: git config --get remote.origin.url
After that, do some regex magic and open a browser with the url! 😄

Here is the code:

if you improve it or if you have any other useful commands, let me know!

hacksbashpowershellgit

Previous: The Mental Load : What do Women think about?

Next: Career Panel @ Geeking Out Kids of Color