先安装goDownload and install - The Go Programming Language
安装方法:下载msi文件进行安装,可更改安装路径,然后在终端,比如powershell中输入>go version查看版本号,若显示版本号则表示安装成功,然后在lazygit目录下运行>go install安装插件
然后在powershell中输入>lazygit,似乎有点问题
- Open the MSI file you downloaded and follow the prompts to install Go.
By default, the installer will install Go to
Program Files
orProgram Files (x86)
. You can change the location as needed. After installing, you will need to close and reopen any open command prompts so that changes to the environment made by the installer are reflected at the command prompt. - Verify that you've installed Go.
- In Windows, click the Start menu.
- In the menu's search box, type
cmd
, then press the Enter key. - In the Command Prompt window that appears, type the following command:
$ go version
- Confirm that the command prints the installed version of Go.
git clone仓库到plugins目录
Manual
You'll need to install Go
git clone https://github.com/jesseduffield/lazygit.git
cd lazygit
go install
You can also use go run main.go
to compile and run in one go (pun definitely intended)