添加 'Git/get私库项目.md'

This commit is contained in:
iProbe 2023-03-23 14:20:51 +08:00
parent b908535da4
commit cd1a3cd55b

17
Git/get私库项目.md Normal file
View file

@ -0,0 +1,17 @@
go get只支持https,若只有http或ssh,需要配置
#### ssh
```bash
# ssh
# 在.gitconfig文件中替换
[url "ssh://git.xxx.com:2222"]
insteadOf https://git.xxx.com/
```
#### http
```bash
go env -w GOINSECURE=git.xxx.com
```
#### 配置私库
```bash
go env -w GOPRIVATE=git.xhupo.com
```