Git 推送不会通过 HTTPS 执行任何操作 [英] Git push doesnt do anything over HTTPS
本文介绍了Git 推送不会通过 HTTPS 执行任何操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我通过 https 推送到我的远程存储库时,终端没有响应.
git push origin2 master# 注意
SSH 工作正常,我可以推送.
知道为什么会发生这种情况吗?
解决方案
不要使用 GIT_TRACE1,如评论中建议的那样,使用 (with a 最近足够的 Git), GIT_TRACE2_EVENT
设置 GIT_TRACE2_EVENT=1推# 取消跟踪设置 GIT_TRACE2_EVENT=
还要检查 git remote -v
的输出来检查:
- origin2 确实存在
- 这是一个 HTTPS 网址
When im pushing to my remote repository through https ,there is no response from the terminal. This happens:
git push origin2 master
# noting
SSH works fine and I am able to push.
Any idea why this would happen?
解决方案
Instead of using GIT_TRACE1, as suggested in comments, use (with a recent enough Git), GIT_TRACE2_EVENT
set GIT_TRACE2_EVENT=1
git push
# to cancel traces
set GIT_TRACE2_EVENT=
Check also the output of git remote -v
to check:
- that origin2 does exist
- that it is an HTTPS URL
这篇关于Git 推送不会通过 HTTPS 执行任何操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文