首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在windows上发出Git凭据

在windows上发出Git凭据
EN

Stack Overflow用户
提问于 2018-02-13 06:37:11
回答 2查看 1.2K关注 0票数 0

我几乎没有托管在企业gitlab服务器上的存储库。昨天以前一切都很好。

突然,我所有的公共存储库都开始返回403错误,私有存储库无法被git复制,错误如下:fatal: repository 'http://gitlab.my-company.com/my/project.git/' not found

我使用的是Windows 10,我尝试在同一台PC (Linux的Windows子系统)上运行来自Ubuntu的完全相同的命令,对于同一个目录,一切都很好。

我的命令是:

代码语言:javascript
复制
Projects> git clone http://gitlab.my-company.com/my/project.git
Cloning into 'project'...
remote: The project you were looking for could not be found.
fatal: repository 'http://gitlab.my-company.com/my/project.git/' not found

以下是git日志的输出:

代码语言:javascript
复制
18:02:48.454054 git.c:344               trace: built-in: git 'clone' 'http://gitlab.my-company.com/my/project.git'
18:02:48.580533 run-command.c:627       trace: run_command: 'remote-http' 'origin' 'http://gitlab.my-company.com/my/project.git'
18:02:48.658654 git.c:576               trace: exec: 'git-remote-http' 'origin' 'http://gitlab.my-company.com/my/project.git'
18:02:48.658654 run-command.c:627       trace: run_command: 'git-remote-http' 'origin' 'http://gitlab.my-company.com/my/project.git'
18:02:48.945121 run-command.c:627       trace: run_command: 'git credential-manager get'
18:02:49.054428 git.c:576               trace: exec: 'git-credential-manager' 'get'
18:02:49.054428 run-command.c:627       trace: run_command: 'git-credential-manager' 'get'
18:02:49.163803 ...\Common.cs:527       trace: [Main] git-credential-manager (v1.14.0) 'get'
18:02:49.241926 ...\Where.cs:240        trace: [FindGitInstallations] found 1 Git installation(s).
18:02:49.241926 ...Configuration.cs:405 trace: [LoadGitConfiguration] git All config read, 19 entries.
18:02:49.241926 ...\Where.cs:240        trace: [FindGitInstallations] found 1 Git installation(s).
18:02:49.241926 ...Configuration.cs:405 trace: [LoadGitConfiguration] git All config read, 19 entries.
18:02:49.288801 ...\Common.cs:77        trace: [CreateAuthentication] detecting authority type for 'http://gitlab.my-company.com/'.
18:02:49.288801 ...uthentication.cs:137 trace: [GetAuthentication] not github.com, authentication creation aborted.
18:02:49.288801 ...\Common.cs:172       trace: [CreateAuthentication] authority for 'http://gitlab.my-company.com/' is basic with NTLM=Auto.
18:02:49.304424 ...seSecureStore.cs:138 trace: [ReadCredentials] credentials for 'git:http://gitlab.my-company.com' read from store.
18:02:49.304424 ...\Common.cs:559       trace: [QueryCredentials] credentials found.

在内置的ubuntu上,完全相同的命令工作得很好,所以它不是网络或坏URL的问题。

看来凭据管理器有问题,但我不知道如何解决它。我尝试在windows (git version 2.16.1.windows.4)上重新安装git客户端。

有什么办法可以擦去所有的证书吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-02-14 12:21:02

通过卸载git并在没有凭据管理器的情况下再次安装解决了问题。

票数 1
EN

Stack Overflow用户

发布于 2020-04-15 05:09:44

若要更新凭据,请转到控制面板->凭据管理器->通用凭据。查找与git帐户相关的凭据,并编辑它们以使用更新的密码。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48760812

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档