A Jetbrains plugin that provides shortcuts to open a file or commit in GitHub, Bitbucket, GitLab, Gitea, Gogs or GitBlit using the default browser.
This plugin is published on the JetBrains Plugin Repository:
Preferences → Plugins → Browse Repositories → Search for "GitLink"
Clone this repository:
$ git clone https://github.com/ben-gibson/GitLink
$ cd GitLink
Update the permissions:
$ chmod +x ./gradlew
Build the plugin zip file:
$ ./gradlew buildPlugin
Install the plugin from ./build/distributions/GitLink-*.zip
:
Preferences → Plugins → Install plugin from disk
Update the permissions:
$ chmod +x ./gradlew
Execute an IntelliJ IDEA instance with the plugin you're developing installed:
$ ./gradlew runIdea
Run the tests:
$ ./gradlew test
After installing the plugin set your remote host and enabled extensions in the preferences:
Preferences → Other Settings → GitLink
Make sure you have registered your projects root under the version control preferences:
Preferences → Version Control (see unregistered roots)
To open the current file in the default browser:
View → Open in (your selected host) or
Select in... → Browser (GitLink)
Shortcuts are also available on the annotation gutter and VCS log window.
When viewing a file, the URL generated references the current commit unless that commit does not exist on the remote repository in which case it references the current branch instead. If the current branch also does not exist on the remote repository the default branch defined in the plugin configuration is used instead.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
Please see LICENSE for details.