【发布时间】:2019-04-21 16:07:02
【问题描述】:
我正在尝试推送到远程存储库。远程来源是 https 链接。但是,当我尝试推送时,会提示输入我的用户名,然后 OpenSSH 弹出窗口会询问我的密码。输入我的密码(或个人访问令牌)后,我收到错误
remote: Password authentication is not available for Git operations.
remote: You must use a personal access token or SSH key.
remote: See https://******/settings/tokens or https://******/settings/ssh
fatal: unable to access 'https://******': The requested URL returned error: 403
git 配置文件如下。特别是所有链接看起来都是 https,而不是 ssh,所以我不知道为什么 OpenSSH 要求输入密码。上周我能够推动并且(据我所知)我没有改变任何东西。从那以后,我当然没有推过其他任何地方。
core.symlinks=false
core.autocrlf=true
core.fscache=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
push.default=simple
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
user.name=******
user.email=******
user.username=******
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://******
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
【问题讨论】: