This project is inspired by cnishina/git-web-launcher.
Install via go command:
$ go get -u github.com/wei0831/ghg
Usage:
ghg open [path](default=".") [flags]
Flags:
-b, --branch string branch (default "master")
-h, --help help for open
-r, --remote string remote (default "origin")
Open current file/directory's remote Source URL in the browser.
$ ghg open
$ ghg open README.md
Usage:
ghg blame [path](default=".") [flags]
Flags:
-b, --branch string branch (default "master")
-h, --help help for blame
-r, --remote string remote (default "origin")
Open current git repo file's remote Blame URL in the browser.
$ ghg blame ./[FileName]
Usage:
ghg [command]
Available Commands:
blame Launches the blame remote URL for the target path with the given branch.
help Help about any command
open Launches the source remote URL for the target path with the given branch.
Flags:
-h, --help help for ghg
Use "ghg [command] --help" for more information about a command.
$ ghg -h
Uninstall via go command:
$ go clean -i github.com/wei0831/ghg
- Github.com
- Gitlab.com
- BitBucket.org