解决本地主机无法push项目到gitlab
·
报错如下:
remote: You are not allowed to push code to this project.
fatal: unable to access 'https://*.git/': The requested URL returned error: 403
解决方法:
进入到项目文件夹的.git文件夹下:vim .git/config
修改:[remote "origin"]节点下的url:
例如:url = https://git.…….git
改为:url = https://username:password@git.…….git #添加登陆git的用户名和密码
最后重新push即可
更多推荐


所有评论(0)