|
1 | 1 | # Git Open |
2 | 2 |
|
3 | | -[](https://goreportcard.com/report/github.com/zhaochunqi/git-open) [](https://codecov.io/github/zhaochunqi/git-open) |
| 3 | +[](https://goreportcard.com/report/github.com/zhaochunqi/git-open) [](https://codecov.io/github.com/zhaochunqi/git-open) |
4 | 4 |
|
5 | | -This is a Go-based tool that allows you to open the current repository in a web browser. It's a simple yet efficient solution for quickly accessing your project's online resources. |
| 5 | +## 🚀 Quick Install |
| 6 | + |
| 7 | +### Recommended (macOS) |
| 8 | +```sh |
| 9 | +brew install --cask zhaochunqi/tap/git-open |
| 10 | +``` |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +--- |
| 15 | + |
| 16 | +A Go-based tool that allows you to open the current repository in a web browser with a single command. It's a simple yet efficient solution for quickly accessing your project's online resources. |
6 | 17 |
|
7 | 18 | ## Features |
8 | 19 |
|
9 | 20 | * Easy Access: Open your repository in a web browser with a single command. |
10 | 21 | * Cross-Platform: Built using Go, the tool is compatible with various operating systems. |
11 | 22 | * Lightweight: Minimal dependencies and efficient code ensure the tool runs smoothly. |
12 | 23 |
|
13 | | -## Installation |
| 24 | +## Installation Options |
14 | 25 |
|
15 | 26 | There are multiple ways to install the tool: |
16 | 27 |
|
17 | | -### Using Go |
| 28 | +### Homebrew (macOS) - Recommended |
18 | 29 |
|
19 | | -Ensure you have Go installed on your system. Then, use the following command: |
| 30 | +The easiest method for macOS users with automatic updates: |
20 | 31 |
|
21 | 32 | ```sh |
22 | | -go install github.com/zhaochunqi/git-open@latest |
| 33 | +brew install --cask zhaochunqi/tap/git-open |
23 | 34 | ``` |
24 | 35 |
|
25 | | -### Using mise with ubi |
| 36 | +### GitHub Releases |
26 | 37 |
|
27 | | -If you prefer using mise, you can install the tool with: |
| 38 | +Download the pre-compiled binary for your platform: |
28 | 39 |
|
29 | 40 | ```sh |
30 | | -mise use -g ubi:zhaochunqi/git-open |
| 41 | +# macOS (Intel) |
| 42 | +curl -L https://github.com/zhaochunqi/git-open/releases/latest/download/git-open-darwin-amd64 -o git-open |
| 43 | +chmod +x git-open |
| 44 | +sudo mv git-open /usr/local/bin/ |
| 45 | + |
| 46 | +# macOS (Apple Silicon) |
| 47 | +curl -L https://github.com/zhaochunqi/git-open/releases/latest/download/git-open-darwin-arm64 -o git-open |
| 48 | +chmod +x git-open |
| 49 | +sudo mv git-open /usr/local/bin/ |
| 50 | + |
| 51 | +# Linux (x64) |
| 52 | +curl -L https://github.com/zhaochunqi/git-open/releases/latest/download/git-open-linux-amd64 -o git-open |
| 53 | +chmod +x git-open |
| 54 | +sudo mv git-open /usr/local/bin/ |
31 | 55 | ``` |
32 | 56 |
|
33 | | -This method allows for easy version management and isolation. |
34 | | - |
35 | | -### Using Homebrew |
| 57 | +### mise with ubi |
36 | 58 |
|
37 | | -If you have Homebrew installed, you can install the tool via our Homebrew tap: |
| 59 | +For users who prefer mise for version management: |
38 | 60 |
|
39 | 61 | ```sh |
40 | | -brew install --cask zhaochunqi/tap/git-open |
| 62 | +mise use -g ubi:zhaochunqi/git-open |
41 | 63 | ``` |
42 | 64 |
|
43 | | -This is the recommended method for macOS users as it provides easy updates and management. |
44 | | - |
45 | 65 | ## Usage |
46 | 66 |
|
47 | 67 | Navigate to your project's directory and run the following command: |
|
0 commit comments