Golang Error: go get github/xxx [How to Fix]

> go get github.com/gin-gonic/gin

...
 exit status 128:
	fatal: git fetch-pack: expected shallow list


Root cause:

It’s a git problem. Please upgrade git to the latest version

Read More: