我的用户名和密码存储在Git Extensions的内部.一段时间后,有必要再次提供用户名和密码,我多次给错了.
现在,如果我想拉东西等,我会收到fatal: Authentication failed.我不能给新密码,它似乎存储,我不知道如何更改它.
是否可以删除旧凭据?
我有2.51.04版本.我已经卸载它并重新安装它并没有帮助我.
我有几个存储库,显然我正在使用 GitHub 密码身份验证的缓存版本。我最近才了解到这一点,因为 GitHub 停止支持密码,而是需要个人访问令牌 (PAT) 或 SSH 密钥。
对于拉取或推送的所有私有存储库,我会收到以下消息:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/villano-lab/CEvNS.git/': The requested URL returned error: 403
Run Code Online (Sandbox Code Playgroud)
我通过查看这篇文章解决了这个问题。根据该信息,我推断我应该检查我的参数credential.helper。通过做:
git config --list
Run Code Online (Sandbox Code Playgroud)
我发现它被设置为“存储”,如下所示:
credential.helper=store
Run Code Online (Sandbox Code Playgroud)
所以我所做的就是这样设置的:
git config credential.helper ""
Run Code Online (Sandbox Code Playgroud)
这样做的目的是让我再次输入我的用户名和密码(而不是由 git 客户端以默认方式提供)。然后,我能够创建 GitHub 个人访问令牌并在密码字段中使用它,并且满足新的 GitHub 要求,并且我没有收到错误。
问题是,我如何使其永久化?例如,如何将 PAT 放入 git 客户端缓存中,这样我就不必像以前一样再次输入它?截至目前,如果我回到:
git config credential.helper store
Run Code Online (Sandbox Code Playgroud)
它将恢复为旧密码,GitHub …
截至今天,我在 Azure-DevOps 中尝试对我的存储库使用 git 命令时遇到错误。这些存储库位于 DevOps 上的一个项目中,我可以使用同一个帐户访问它,并且没有显示任何最近对其进行任何更改的迹象。我可以采取的重现它的步骤是:
错误:
fatal: Authentication failed for `<link to repository>`
Run Code Online (Sandbox Code Playgroud)
到目前为止我尝试过的事情:
Visual Studio.IdentityService文件夹GITGIT For Windows在Visual Studio Installer%LOCALAPPDATA%\Microsoft\Team Foundation\7.0\Cache%LOCALAPPDATA%\Microsoft\Team Foundation\8.0\CacheGIT并VS从键Credential Manager目前正在运行:
编辑:
我尝试Visual Studio Code与Azure Repos 1.149.2扩展一起使用并得到相同的错误。它让我在 Microsoft 页面上输入它授予的设备登录代码,但使用git命令会给我相同的错误消息。
我还从 Azure DevOps 环境中删除了我的配置文件并重新添加,但没有成功。
我在Windows 10系统上,正在尝试将我的凭据添加到Git Bash中的Git。我找不到存储密码的方法。
我检查了GitHub的文档,该文档说的只是输入这一行git config --global credential.helper wincred,但这似乎没有任何意义,因为没有提示输入密码。我检查了Git的文档,该文档说要使用command git credential-store --file ~/git.store store并填写所有提示。bash模拟器无法读取凭据。
最后,我尝试像通过添加电子邮件一样添加密码,git config --global user.password "5ecre7"但是在存储库上运行了示例git clone之后,我让它响应说我没有访问权限。有没有办法解决这个问题?
我在 Windows 上使用 github。我是 github 的新手,所以我对账户有点困惑。我前段时间(4个月)建立了github。我在 github.com 上有两个 github 帐户
我正在 github.com 上使用 username1 帐户创建一个存储库。存储库名称是test。我正在将我的文件推送到存储库。命令:
我正在 github.com 网站上打开我的 github username1 帐户,并打开 tets 存储库页面,但索引内容由username2修改
我从控制台更改了用户名、电子邮件,但用户名 2 尚未出现。
与ssh有关吗?我能做些什么?我是新的。
我正在运行最新的Git For Windows 2.29.2,对我来说默认credential.helper设置为。manager-core我确实确认正在运行git config --system list。
我的 Git 安装显示它有两个凭证助手
version在 git 终端中运行命令确认它们的存在:
$ git credential-manager version
Git Credential Manager for Windows version 1.20.0
Run Code Online (Sandbox Code Playgroud)
$ git credential-manager-core --version
Git Credential Manager version 2.0.280-beta+1f4c6db90f (Windows, .NET Framework 4.0.30319.42000)
Run Code Online (Sandbox Code Playgroud)
现在看来 git 基本上可以使用三种方式来管理凭据:
(A)。Windows 凭证管理器(控制面板内的凭证管理器),
(二)。适用于 Windows 的 Git 凭据管理器,以及
(C)。Git Crednetial Manager 核心。
如果我的理解是正确的,那么根据这篇文章,它与控制面板的Windows Credential Manager …
我在git中有多个帐户,我在三周前使用此帐户提交了代码。我将无法提取我的代码。我收到请求的URL返回错误:403我会尝试按Git返回错误代码403致命:HTTP请求失败, 但我无法解决我的错误
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
remote: Forbidden
fatal: unable to access
'https://chantidurgam@bitbucket.org/chantidurgam/patanjali.git/': The requested
URL returned error: 403
Run Code Online (Sandbox Code Playgroud)
完成但有错误,请参见上文。
我只是想从 Github 克隆一个私有存储库,然后出现提示并询问我的登录详细信息。我打了一个错字,但我没有第二次尝试。如果我再次尝试克隆,我会收到以下消息:
Cloning into 'name'...
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/owner/name.git/'
Run Code Online (Sandbox Code Playgroud)
我想为我的 git 设置默认密码和用户名,因为我只会使用 1 个 Github 帐户。如何设置我的用户名和密码?
我在网上找到了很多东西,但没有一个是设置凭据的明确命令。
提前致谢
GitHub 通知我需要切换到 token。我按照指南创建了一个令牌。该指南没有说的是我必须在本地计算机上执行的操作(我正在运行 Linux)。过去我已经配置了我的 git
git config --global user.name "name"
git config --global user.email my@emailadress.com
Run Code Online (Sandbox Code Playgroud)
在我的 ~/.git-credentials 中,我确实看到了我的用户和哈希密码。
我需要做什么才能获得令牌访问权限?
现在是否使用我的令牌,如果不是,我该怎么办?如果是,我可以从本地配置中删除旧的哈希密码吗?
我在gitlab web ui中创建了一个存储库,并试图推送我的本地存储库.我使用以下命令添加了远程仓库:
$ git remote add origin test@x.x.x.x:project.git
Run Code Online (Sandbox Code Playgroud)
然后我试着推,但它错了.我不使用ssl.我想使用纯文本连接.
$ git push origin master
test@x.x.x.x's password:
Permission denied, please try again.
test@x.x.x.x's password:
Permission denied, please try again.
test@x.x.x.x's password:
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud) git ×10
github ×5
azure-devops ×1
bash ×1
bitbucket ×1
git-pull ×1
gitlab ×1
pull-request ×1
ssh ×1
token ×1