Avatar ·

Error "terminal prompts disabled" when running go get for private GitHub repository

Hi everyone! I'm new to Go and trying to use a private GitHub repository in my project. I have a go.mod file with the dependency: ``` require github.com/mycompany/private-repo v0.1.0 ``` When I run `go get github.com/mycompany/private-repo@latest`, I get the error: ``` go get github.com/mycompany/private-repo@latest: github.com/mycompany/private-repo@v0.1.0: terminal prompts disabled Use the 'gitconfig' or 'GIT_TERMINAL_PROMPT' environment variable to enable prompts ``` I've already added an SSH key to my GitHub account and can clone the repository using `git clone git@github.com:mycompany/private-repo.git` without any issues. But Go doesn't seem to work. I tried changing GOPROXY to `direct` — it didn't help. I'm using Go 1.21 on macOS. Please advise what to do.