我在使用 git push 时遇到了问题。这里有很多关于这个问题的线索,但没有一个适合我的问题。
我工作的公司有自己的 gitlab。策略只有 https,不允许 ssh。对于克隆和拉取,需要访问令牌。仅使用用户名/密码推送。不要问我底层原因。不幸的是我不知道。
错误信息是:
$ git push
fatal: unable to access 'https://<username>:<AccessToken>@<domain>/<owner>/<reponame>.git/': The requested URL returned error: 403
Run Code Online (Sandbox Code Playgroud)
至少我已经能够克隆一个 repo,但是我无法分别推送更改的内容。Ubuntu 18.04 正在我的笔记本电脑上运行。我需要做什么来解决我的问题?