Code Monkey home page Code Monkey logo

open-remote's Introduction

open-remote

Gem Version Build Status MIT

open-remote - a simple git remote opening tool.

tested and works well for:

- github
- bitbucket
- heroku

if there are other git hosting websites that you would like to use this with, either let me know or make a pull request with the augmentation for that host.

setup

[sudo] gem install open-remote

making a git alias for 'git open' in your .gitconfig:

open-remote --alias

removing the alias, if you don't want it anymore:

open-remote --unalias

usage

git open

opens the first listed git remote. to open a specific remote, specify some of the remote or host name. for example:

git open bit
git open bucket
git open bitbucket

will all open the current repository's bitbucket remote in the browser. additionally, you can use the remote name to specify which URL to open:

git open origin

about

the original idea for this came from my friend charlie who initially provided me with a simple git alias that would do the same, but it only worked for repos that were https and was not platform independent. I was also inspired by the git-up ruby gem in how seamlessly it integrated with git. Here is the original git alias (made to work on osx), which charlie wrote (plop it in your .gitconfig, if you don't want to install a ruby gem to open most of your git remotes):

[alias]
    open-remote = "!open $(git remote -v $@ | grep -o 'http\\S*' | head -1); :"

testing

bundle || gem install bundler && bundle
rake # running open-remote's tests

todo

add support for ssb clients:
"ssb://%3HY71B7em4rZwMwz76yHIJZA1zo5BMBLd7Msh8LRFHI=.sha256"

open-remote's People

Contributors

jeremywrnr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.