使用Git push时遇到问题(SourceTree),升级Git版本即可解决
当尝试使用SourceTree进行push时发生了以下错误。
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags yLineGame master:master
Logon failed, use ctrl+c to cancel basic credential prompt.
Pushing to https://github.com/cicular/yLineGame.git
エラー終了しました。エラーの内容は上記をご覧ください。
在本地提交是成功的,但无法推送。刚刚一个半小时前还可以推送的。。
当出现上述错误消息并要求认证时,弹出窗口显示,尽管输入了正确的登录信息,但问题仍然存在。无论重试多少次都没有改变。
即使在SourceTree的「工具」->「选项」->「认证」中进行查看,账户信息也已正确地被注册。
对应
因为Git的版本似乎较旧,所以需要进行更新。
C:\Users\circu>git --version
git version 2.28.0.windows.1
git update-git-for-windows
C:\Users\circu>git --version
git version 2.37.1.windows.1
当我尝试从SourceTree再次进行推送时,要求我进行认证授权。

当点击「授权」按钮时,推送成功。