GitLab代码上传配置

1.初始化

git init

2.创建key

ssh-keygen -t rsa

在~/.ssh/下会生成 id_rsa.pub密钥文件

将公钥设置到网页上

3.配置使用Git仓库的人员姓名/人员email,填写自己的公司邮箱
git config --global user.name "xxx"
git config --global user.email "[email protected]

4.可以提交代码了。

猜你喜欢

转载自blog.csdn.net/csdn1126274345/article/details/104286008
今日推荐