git-browse-remote helps viewing remote repositories e.g. GitHub in your browser.
[sudo] gem install git-browse-remote
git browse-remote [-r|--remote <remote>] [--top|--rev|--ref] [-L <n>] [<commit> | <remote>] [<file> | <directory>]
git-browse-remote opens your web browser by
git web--browse to show current repository in browser.
git-browse-remote depends on what commit/ref
HEAD points (or you supplied by an argument), such as:
- When on "master", opens repository's top page ("top" mode)
- e.g. opens https://github.com/motemen/git-browse-remote
- When on another branch/tag, opens repository's branch/tag page ("ref" mode)
- Otherwise, opens repository's commit page ("rev" mode)
As a special case, if commit is invalid and an valid remote name, that remore repository's page is opened.
For more information such as custom URL mappings, please visit the web page.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request