修改地址仓库地址
cd $project
cd .git
vim config
[remote "origin"]
url = https://oauth2:访问令牌@仓库地址
或者使用 basic 认证
[remote "origin"]
url = https://username:pwd@仓库地址
ssh 公钥加入到 gitlab
ssh-keygen -t rsa -C 'xxx@xxx.com'
cd $project
cd .git
vim config
[remote "origin"]
url = https://oauth2:访问令牌@仓库地址
[remote "origin"]
url = https://username:pwd@仓库地址
ssh-keygen -t rsa -C 'xxx@xxx.com'