将项目上传到码云

1.生成公钥:
ssh-****** -t rsa -C “[email protected]
ssh -T [email protected]
2.在本地项目目录下执行:
git add .
git commit -m “add files”
3.上传到码云:
git remote add origin https://gitee.com/zf522/vue_shop.git
git push -u origin master
问题:如果出现:remote: You do not have permission push to this repository
fatal: unable to access ‘https://gitee.com/zf522/vue_shop.git/’: The requested URL returned error: 403
解决:可能是window凭据没有改成自己的账号和密码。
将项目上传到码云