Bash function to quickly open www.github.com in your browser to the relevant URL based on the current git repository and branch.
github-open currently supports the following commands:
githubopens GitHub repository and branchgithub compareopens GitHub branch comparison withmastergithub compare branch_nameopens GitHub branch comparison withbranch_namegithub helpdisplays information on how to use the scriptgithub propens a GitHub pull request againstmastergithub pr branch_nameopens a GitHub pull request againstbranch_name
This requires bash-completion to be installed: https://sourabhbajaj.com/mac-setup/BashCompletion/
The easiest method to install is using Homebrew:
brew tap andrewjtait/ajt-tap
brew install github-openYou can easily uninstall using:
brew uninstall github-openbrew update
brew upgrade github-openClone this repository and add the following line to your .bash_profile:
. "path/to/repo/github-open/github-open"After installation you will either need to reload your .bash_profile:
source ~/.bash_profileor open a new session in your terminal.