Github fix could not get username

in Golang project.

go: github.com/abc/xyz-utils@v0.0.0-20201015040921-5f23d1a17a73: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/cuongld/go/pkg/mod/cache/vcs/eb83eaf537e0aebe864ffaf3709762d4d27c7d31480b965e40fa5ad2d1145e2d: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
git config --global url.git@github.com:.insteadOf https://github.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store