gopen is a command-line tool designed to open the remote URL of a Git repository in your browser like macOS open command.
- Automatic Remote URL Opening: Extracts the remote URL from the Git repository in the current or specified directory and opens it in the browser.
- SSH to HTTPS Conversion: Automatically converts SSH URLs to HTTPS URLs for browser access.
- Interactive Mode: Allows users to select a remote URL from multiple options through an interactive interface.
- Directory Specification: Users can specify a directory to search for and open the remote URL from that directory.
You can install gopen via Homebrew:
brew tap libratiger/homebrew-tap
brew install gopenRun gopen in the current Git repository directory to automatically open the first remote URL.
gopenSearch for and open the remote URL in the specified directory.
gopen /path/to/git-repoUse the -i parameter to enter interactive mode, allowing the user to select a remote URL to open.
gopen -iOr use interactive mode in a specified directory:
gopen /path/to/git-repo -i# Default mode, opens the remote URL in the current directory
gopen
# Specified directory
gopen /path/to/git-repo
# Interactive mode
gopen -i
# Specified directory with interactive mode
gopen /path/to/git-repo -iIssues, feature requests, and pull requests are welcome. Please visit the GitHub repository to contribute.
gopen is licensed under the MIT License.