Copy & Browse as Github or Atlassian Stash Path

Compatible with all products except MPS
30.11.2015
6 240
For projects with git repos in the base, it allows you to copy the current file's path on master, and open that with the default browser.
Handy when you want to quickly navigate to a file in Intellij and then copy the Github or Atlassian Stash link (including line number) to share with someone else as a URL.
Github source and issue tracker.

Download plugin

Recent change notes

fixes bug if project is not at the git checkout root

General usage instructions

For files that have a git root at the root of the project. Right click on a file to open it in github or stash, and copy that url to the clipboard.
nev
08.12.2015
Doesn't work for me. Project is in a folder c:\ssts and I have 3 modules underneath that - each with it's own .git folder Got error: java.lang.RuntimeException: Could not find parent .git/ folder. Maybe path is not in a git repo? C:\ at com.squareup.intellij.helper.GitRepo.findDotGitFolder(GitRepo.java:49) at com.squareup.intellij.helper.GitRepo.findDotGitFolder(GitRepo.java:60) at com.squareup.intellij.helper.GitRepo.(GitRepo.java:27) at com.squareup.intellij.helper.GitRepo.(GitRepo.java:22) at com.squareup.intellij.helper.StashRepo.(StashRepo.java:11) at com.squareup.intellij.StashCopyAndOpenUrlForFile.actionPerformed(StashCopyAndOpenUrlForFile.java:14)
Please  sign in  to leave a comment.