Git Product home page Git Product logo

ghwd's Introduction

ghwd

A shell command to open a git URL in your browser that matches your shell's current branch and working directory. Works for GitHub, BitBucket, and GitLab repositories.

Runs on Mac, Linux, Cygwin, and Windows.

Install it

npm install ghwd --global

Use it

cd myapp
git checkout mybranch
cd some/dir

ghwd
# https://github.com/bozo/myapp/tree/mybranch/some/dir

ghwd foo.js
# https://github.com/bozo/myapp/tree/mybranch/some/dir/foo.js

Use it faster

A g alias is created automatically to save you three keystrokes:

g foo.js

System Requirements

Requires the bash or zsh shell to run. Supports Mac, Linux, Cygwin and Windows by searching for one of the following openers: xdg-open, open,cygstart,start.

Providers

ghwd supports git repos from the following providers:

See Also

If you are interested in further integration between your shell and Github, check out the hub project. It adds a git browse command which works much like this one, in addition to a number of other features.

License

ISC

octobiwan

ghwd's People

Contributors

edef1c avatar gvangool avatar josephgrossberg avatar josmardias avatar klmanion avatar lukekarrys avatar markstos avatar nitriques avatar sshaw avatar zeke avatar

Watchers

 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.