【发布时间】:2021-01-31 01:01:12
【问题描述】:
当我尝试使用 git 从命令行获取某些内容时,我得到:
"git: 'credential-git' is not a git command. See 'git --help'.
remote: Invalid username or password."
知道 credential-git 存储在哪里吗? Sourcetree 和其他客户端也无法正常工作。
这是我的 git 配置:
credential.helper=osxkeychain
user.name=My Name
user.email=my@email.com
core.excludesfile=/Users/oge/.gitignore_global
difftool.sourcetree.cmd=opendiff "$LOCAL" "$REMOTE"
difftool.sourcetree.path=
mergetool.sourcetree.cmd=/Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh "$LOCAL" "$REMOTE" -ancestor "$BASE" -merge "$MERGED"
mergetool.sourcetree.trustexitcode=true
commit.template=/Users/myuser/.stCommitMsg
url.https://api:@github.com/.insteadof=https://github.com/
url.https://ssh:@github.com/.insteadof=ssh://git@github.com/
url.https://git:@github.com/.insteadof=git@github.com:
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.https://dev.azure.com.usehttppath=true
credential.helper=manager-core
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
【问题讨论】:
-
您已将
credential.helper配置为git,但您没有credential-git。为什么你首先将credential.helper配置为git?