Golang go get'go:Gitコマンドがありません '例外



Golang Go Getgo Missing Git Commandexception



今日、Windowsの下のgithubでサードパーティのライブラリを取得するときに例外が発生しました(Windowsの下でgo getを最初に使用する場合もあります)

次のように:



go: missing Git command. See http://golang.org/s/gogetcmd package github.com/seefan/gossdb: exec: 'git': executable file not found in %PATH%

解決する

1. gitcmdを開きます
画像

2.次のコマンドを実行します。



画像