sajad torkamani

Make sure the GitHub CLI is installed and then add some bash (~/.bashrc) or ZSH aliases (~/.zshrc):

alias gbranch="git symbolic-ref --short HEAD"

function gview() {
  gh browse -b $(gbranch)

Source your .bashrc or .zshrc files and then run the below from any folder that has Git initialised:


Tagged: GitHub

Leave a comment

Your email address will not be published. Required fields are marked *