From 456dc087a7814036ea5de12efc3626e9907ccfd9 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Sat, 24 Jan 2015 13:34:07 -0800 Subject: [PATCH] now available at `git open`. Boom. --- README.md | 16 +++++++--------- gh.sh => git-open | 0 2 files changed, 7 insertions(+), 9 deletions(-) rename gh.sh => git-open (100%) diff --git a/README.md b/README.md index a70343e..b54d1c7 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,22 @@ -# gh +# git-open A command-line script to open the GitHub page for a repository. ## Usage - gh [remote-name] [branch-name] + git open [remote-name] [branch-name] ### Examples - $ gh + $ git open > open https://github.com/REMOTE_ORIGIN_USER/CURRENT_REPO/tree/CURRENT_BRANCH - $ gh upstream + $ git open upstream > open https://github.com/REMOTE_UPSTREAM_USER/CURRENT_REPO/tree/CURRENT_BRANCH - $ gh upstream master + $ git open upstream master > open https://github.com/REMOTE_UPSTREAM_USER/CURRENT_REPO/tree/master + ## Installation -On Unix systems you have several options. Namely creating an alias or a symbolic link to `gh.sh`. -I prefer to create a symbolic link within `/usr/local/bin/`: +Put this in `~/bin` and make sure that's in your PATH. - ln -s /Users/jason/Documents/workspace/gh/gh.sh /usr/local/bin/gh -**Note:** `open` my not work across all platforms. On some Linux distributions you can replace `open` to `xdg-open`. diff --git a/gh.sh b/git-open similarity index 100% rename from gh.sh rename to git-open