ibr*_*cin 7 git passwords credentials github github-enterprise
我遇到了一种奇怪的情况,我想知道如何推送到仓库。
我有 2 个仓库,一个是公开的,另一个是在公司的 Github Enterprise 下。嗯,我刚刚从企业克隆了一个 HTTPs 存储库链接,一切顺利,通常不需要任何凭据。
然而,当我意识到我也可以推送时,我开始想知道凭据存储在哪里。我检查了.git/config
remote "origin"]
url = https://mygithub.blablacompany.com/blablaUsername/blabla.git
fetch = +refs/heads/*:refs/remotes/origin/*
Run Code Online (Sandbox Code Playgroud)
然后我检查了 git config --list,列出了一堆其他存储库用户名,还:
remote.origin.url=https://mygithub.blablacompany.com/blablaUsername/blabla.git
remote.origin.fetch=+refs/heads/*:refs
branch.master.remote=origin
branch.master.merge=refs/heads/master
Run Code Online (Sandbox Code Playgroud)
然后我检查./git-credentials主文件夹中是否存在。不,事实并非如此。我在本地驱动器上找遍了,不存在。
然后我检查了 Windows 的 git 凭据管理器是否存在:
> git credential-manager version
> Git Credential Manager for Windows version 1.6.1
Run Code Online (Sandbox Code Playgroud)
好的,我假设它存储在 Windows 凭据中。但是当我转到“用户凭据”时,我没有看到任何记录,也没有看到任何有关 git 的信息。
我尝试运行git config credential.helper它返回:
!github --credentials
Run Code Online (Sandbox Code Playgroud)
所以我假设感叹号后面的所有内容都是 shell 命令。好的,所以我尝试检查以下全局配置/Users/Me:
有一个,但它完全是为了另一个非企业回购。
那么我怎样才能推送到这个仓库呢?如何追踪密码/ssh 密钥的存储位置?
| 归档时间: |
|
| 查看次数: |
7886 次 |
| 最近记录: |