Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

readme.md

Gitopen

This is a convenience script to open the repo corresponding to a Git remote URL in your default browser.

Usage

From anywhere in a Git repo:

$ git remote -v | grep push
origin	git@github.com:kevinburke/gitopen.git (push)

$ ./gitopen origin

Will open https://github.com/kevinburke/gitopen in your browser. If you do this hundreds of times a week, this is a pretty useful hack.

Open a pull request

To open a pull request from the command line, run:

$ gitopen -p

This will open a pull request for the current branch to be pulled from the origin remote into master.

Open a pull request against a different remote

To open a pull request against a different remote (say, the upstream remote), specify the remote name after the -p flag:

$ gitopen -p upstream

This will open a pull request for the current branch to be pulled into the upstream master.

Open the tip of a branch

Use --tip to open the tip:

gitopen --tip

It works with branches as well:

gitopen --tip --branch develop

Will open the most recent commit on the develop branch.

View all current pull requests

To open the view with all current pull requests for the repo, use the -s or --pulls flag:

$ gitopen --pulls

Installation

  1. Clone this repository: git clone git://github.com/kevinburke/gitopen.git
  2. Place the gitopen executable somewhere on your PATH, possibly like this:
ln -s $PWD/gitopen /usr/local/bin

Features

  • Works with URL's behind the firewall (eg private installs)
  • Works with SSH and git-read-only URL's

Todo

  • open pull requests against the upstream by default (if it exists)

About

Open one of your remote URL's in your browser

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.