git 2.32 git push -u origin master 什么也没发生 [英] git 2.32 git push -u origin master Nothing happens

查看:181
本文介绍了git 2.32 git push -u origin master 什么也没发生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用 git/github 并且我一直在纠结如何将我的代码推送到 github.我正在学习一些教程,当我输入 git push -u origin master 时,什么也没有发生,也没有像我在本教程中看到的那样打开登录屏幕.我意识到流程凭证管理器"即使在我关闭了 git 提示之后,它仍在运行.我在两台不同的笔记本电脑上做了同样的过程,同样的问题.我想知道是不是2.32版本的问题谢谢.

I've starting to use git/github and I'm stucked on how to push my codes to github. I'm following some tutorials and when I type git push -u origin master nothing is happening, no logins screens opens as I've seen in this tutorials. I reallized that the process "credential manager" is running even after I had closed my git prompt. I did the same process in two different laptops, same issue. I'd like to know if is a problem of the version 2.32 thanks.

当我什么都不说时,意味着卡在这条线上 git push -u origin master.当我尝试关闭 git bash 时,下面的打印屏幕显示给我.

When I say nothing, means getting stuck in this line git push -u origin master. When I try to close git bash,the screen in print bellow show to me.

推荐答案

当你说什么都没有发生"时,你的意思是我等了不到 2 分钟,看起来好像什么都没发生?在这种情况下,它可能是凭证管理器.请参阅问题 git-credential-manager-core 挂起 #364.要查看更多日志记录,运行命令 $ GIT_TRACE=1 GIT_TRANSFER_TRACE=1 GIT_CURL_VERBOSE=1 GIT_TRACE_PERFORMANCE=1 GCM_TRACE=1 git push -u origin master 可能会很有用.您的问题可能会通过设置凭据提供程序来解决.对于 github 服务器,您可以执行此操作 $ GCM_PROVIDER=github git push -u origin master.如果可行,您可以使用 $ git config --global credential.github.com.provider github 永久设置它.您可能还应该查看 配置选项配置.

When you say "nothing is happening", do you mean I waited for less than 2 minutes and it appeared as though nothing happened? In that case it might be the credential manager. See issue git-credential-manager-core hangs on get #364. To see more logging it might be useful to run the command $ GIT_TRACE=1 GIT_TRANSFER_TRACE=1 GIT_CURL_VERBOSE=1 GIT_TRACE_PERFORMANCE=1 GCM_TRACE=1 git push -u origin master. Your problem might be fixed by setting the credential provider. For a github server you can do this $ GCM_PROVIDER=github git push -u origin master. If that worked you can set this permanently with $ git config --global credential.github.com.provider github. You should probably also look in the Configuration options configuration.

如果以上所有听起来都太复杂,您可以将 Windows 的 git 降级到 2.30.安装程序可以在这里找到:https://github.com/git-for-windows/git/releases/download/v2.30.2.windows.1/Git-2.30.2-64-bit.exe

If all the above sounds too complicated you can downgrade git for windows to 2.30. The installer can be found here: https://github.com/git-for-windows/git/releases/download/v2.30.2.windows.1/Git-2.30.2-64-bit.exe

这篇关于git 2.32 git push -u origin master 什么也没发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆