git clone https://gitee.com/username/projectname.git
取出报错:
remote: You do not have permission to pull the repository
fatal: unable to access 'https://gitee.com/username/projectname.git/': The requested URL returned error: 403
可能是因为git访问不同仓库,https方式默认了之前的用户
解决办法:
不要用https地址,用ssh链接,即
git clone git@gitee.com:username/projectname.git