无法通过代理url推送到gitlab

无法通过代理url推送到gitlab,git,gitlab,git-push,gitlab-api,Git,Gitlab,Git Push,Gitlab Api,我通过代理使用gitlab,无法从本地repo推送到远程repo。我正在使用以下命令: git remote add origin https://proxy-url/user/repo.git git add .''' git commit -m "Initial commit" git push -u origin master 使用push命令时,我收到以下错误消息: fatal: unable to access 'https://proxy-url/user/repo.git/':

我通过代理使用gitlab,无法从本地repo推送到远程repo。我正在使用以下命令:

git remote add origin https://proxy-url/user/repo.git
git add .'''
git commit -m "Initial commit" 
git push -u origin master
使用push命令时,我收到以下错误消息:

fatal: unable to access 'https://proxy-url/user/repo.git/': Received HTTP code 403 from proxy after CONNECT

在此问题上的任何帮助都将不胜感激

代理URL本身不应该是GitLab URL的一部分

您只需将
HTTP\u PROXY
HTTPS\u PROXY
设置/导出到该URL,Git将在推送过程中获取该URL。
也可以在设置中设置代理

在这两种情况下,此代理URL通常应为HTTP URL,而不是HTTPS URL:

export HTTP_proxy=http://proxy/url
export HTTPS_proxy=http://proxy/url
                     ^^^
                   still http, not https