方式1: 通过公钥和私钥进行ssh拉去代码
生成公钥和私钥命令
拉去代码
1
| git clone git@github.com:username/repository.git
|
方式1: 配置.netrc
来源: https://go.dev/doc/faq#git_https
在liunx或mac系统下
1
| echo machine github.com login 账号 password 密码 > ~/.netrc
|
拉去代码
1
| git clone https://github.com/username/repository.git
|