Git alias idea: "git browse" to open repo in browser
https://hachyderm.io/@deadlydog/112408603846903105Open linkView original on programming.devSyndicated from the fediverse. Read and engage on the original instance.
View original on programming.dev
https://hachyderm.io/@deadlydog/112408603846903105Open linkView original on programming.dev
4 replies
Ah, so it's completely useless
I believe you can replace
startwith the command that is suitable for your system (e.g.,xdg-openfor linux).This is how I was able to get ssh urls to work into something GitHub can open in the browser. Other sites may need more adjustments
Also,
openis the Mac commandnot that it's a better solution, but a different solution is that for github at least, the
ghcli is fantastic and has commands for opening the repo both in the cli and the browser, and you can also open issues, prs, etc. I havegh prvaliased to open the current branch's PR in the browser.