Open ystyle opened 4 months ago
https://ystyle.top/2021/06/22/go-mod-gogs-private/
环境变量设置 添加环境变量或设置go env123export GOPRIVATE=git.hofo.co# 或者go env -w GOPRIVATE=git.hofo.co git设置 在git设置http.extraheader PRIVATE-TOKEN生成方式: 在点击gogs右上头像-用户设置-授权应用-生成新的token1git config --global http.ex
https://ystyle.top/2021/06/22/go-mod-gogs-private/
环境变量设置 添加环境变量或设置go env123export GOPRIVATE=git.hofo.co# 或者go env -w GOPRIVATE=git.hofo.co git设置 在git设置http.extraheader PRIVATE-TOKEN生成方式: 在点击gogs右上头像-用户设置-授权应用-生成新的token1git config --global http.ex