我试图把我的本地分支代码到一个新的回购协议的主人。这些都是Gitlab回购。但我不断收到这个错误 -
远程:你(@user)必须接受才能执行此操作的服务条款。请从Web浏览器访问GitLab接受这些条款。致命的:无法访问“https://gitlab.com/autopartsz/autopartsz-ios.git/”:请求的URL返回错误:403
@user不是我。我不知道发生了什么。
我致力于对gitlab我的本地分支,再打开一个远程和终端写道:
git push https://gitlab.com/new_project/new_project-ios +local_branch:master
我发现here!
该人士@user正在对不同的回购在我面前。我工作在资源库中创建了一个几个月前,并没有加入此人作为成员。
@user不是我
这意味着本地的Git安装必须使用已缓存的凭据“用户”的凭证帮手
git config credential.helper
你既可以:
git remote set-url origin [email protected]:new_project/new_project-ios
),只要您注册了您的SSH密钥您GitLab帐户 git credential-manager reject gitlab.com
(在Mac OS:详见 “Managing Remotes / Updating credentials from the OSX Keychain Updating credentials from the OSX Keychain”)