Open a GitHub, Bitbucket, GitLab, or Codeberg branch or file from your terminal.
sudo make install
# To remove it:
sudo make uninstallOpen the current branch:
$ git open
or specify the branch
$ git open remote_branch
and also the file
$ git open remote_branch file_path
File paths are relative to the repository root. Quote paths containing spaces.
The command uses origin and checks locally cached remote branches; run
git fetch origin if a branch is missing. In detached HEAD mode, specify a branch.
HTTPS, HTTP, scp-style SSH, and ssh:// remotes are supported. Self-hosted
GitLab and GitHub hosts named gitlab.* and github.* retain their original host.
Use git open --help for usage.
Bash and Git are required. Linux also requires xdg-utils; macOS uses open.
Run make test with Python 3 installed. Tests use temporary Git repositories and
a mocked browser opener.
- Fork it
- Create your feature branch (
git checkout -b my-awesome-feature) - Commit your changes (
git commit -m 'Making it better') - Push to the branch (
git push origin my-awesome-feature) - Create new Pull Request
- Wait for me 😄