git报错:You do not have permission push to this repository

解决办法:创建仓库完成后,将SSH换为HTTPS的仓库地址:
git报错:You do not have permission push to this repository_第1张图片
再执行:
git init
git add 你的文件
git commit -m “描述内容”
git remote add origin 你的仓库地址
git push -u origin master
就能成功上传代码。

你可能感兴趣的:(网络技术,git)