添加 'Git/get私库项目.md'
This commit is contained in:
parent
b908535da4
commit
cd1a3cd55b
1 changed files with 17 additions and 0 deletions
17
Git/get私库项目.md
Normal file
17
Git/get私库项目.md
Normal 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
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue