git.exe push --progress  -- "origin" master:master
remote: [session-c4425d88] Access denied
fatal: unable to access 'https://gitee.com/ai_robot_001/robot-service.git/': The requested URL returned error: 403

在这里插入图片描述

git config --global user.name "robot"
git config --global user.email "knowledge0604@126.com"

执行以上命令

在这里插入图片描述在这里插入图片描述

生成rsa公钥
生成 RSA 密钥

ssh-keygen -t rsa

获取 RSA 公钥内容

cat ~/.ssh/id_rsa.pub

ssh公钥配置
https://gitee.com/profile/sshkeys

在这里插入图片描述

创建 git 仓库:

mkdir test003
cd test003
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/ai_robot_001/test003.git
git push -u origin "master"

已有仓库添加

cd existing_git_repo
git remote add origin https://gitee.com/ai_robot_001/test003.git
git push -u origin "master"
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐