Skip to content

andrewjtait/github-open

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

github-open

Bash function to quickly open www.github.com in your browser to the relevant URL based on the current git repository and branch.

Usage:

github-open currently supports the following commands:

  • github opens GitHub repository and branch
  • github compare opens GitHub branch comparison with master
  • github compare branch_name opens GitHub branch comparison with branch_name
  • github help displays information on how to use the script
  • github pr opens a GitHub pull request against master
  • github pr branch_name opens a GitHub pull request against branch_name

Installation:

This requires bash-completion to be installed: https://sourabhbajaj.com/mac-setup/BashCompletion/

Homebrew

The easiest method to install is using Homebrew:

brew tap andrewjtait/ajt-tap
brew install github-open

You can easily uninstall using:

brew uninstall github-open

Upgrading using Homebrew

brew update
brew upgrade github-open

Manual Installation

Clone this repository and add the following line to your .bash_profile:

. "path/to/repo/github-open/github-open"

Troubleshooting

After installation you will either need to reload your .bash_profile:

source ~/.bash_profile

or open a new session in your terminal.

About

Bash shortcuts to open current repo in GitHub

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages