tortoise git 报 Access denied 的错 解决办法
【代码】tortoise git 报 Access denied 的错 解决办法。
·
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"
更多推荐
所有评论(0)