Gitlab 6.2在推送到源时要求用户名和密码验证

Val*_*lli 6 git http gitlab

我在Linux Debian框上运行GitLab 6.2,看起来我无法从命令行推送到远程存储库.

每次我做一个

git push -u origin master

它要求输入用户名和密码(我已将原点添加为HTTP远程)

JBa*_*erU 12

检查您的遥控器未设置为使用http/https:

$ git remote -v
origin  https://somedomain.com/username/repo.git (fetch)
origin  https://somedomain.com/username/repo.git (push)
Run Code Online (Sandbox Code Playgroud)

如果看起来如上所示,请尝试切换到使用ssh,如下所示:

$ git remote rm origin
$ git remote add origin git@somedomain.com:username/repo.git
Run Code Online (Sandbox Code Playgroud)