从远程分支中拉出时出错 [英] Error when pull from remote branch
问题描述
我最初在我的 master
分支中。
git分支my-other-branch
然后,在对我的项目进行了一些更改之后,我将此分支推送到 origin
,使其成为远程分支:
git push origin my-other-branch
我想现在 my-other-branch
可供其他团队成员使用。
过了一段时间,我做了一些更改,添加并提交,然后尝试从拉 远程分支:
git pull origin my-other-branch
我收到了错误:
错误:连接到SERVER_NAME失败:443;正在进行操作,正在访问 https:// SERVER_NAME / projects / bank_project / repositories / git / bank / info / refs
$ b 致命:HTTP请求失败
(我的Git版本是1.7.2.3,我的操作系统是Linux / Ubuntu)
解决方案这里您需要设置分支跟踪。请运行以下命令:
git branch --track my-other-branch origin / my-other branch
git pull原产地my-otherbranch
I was originally on my master
branch.
Then, I created a new branch:
git branch my-other-branch
Then, after I made some changes on my project, I pushed this branch to origin
to make it a remote branch:
git push origin my-other-branch
I guess now the my-other-branch
is available to other team members to use.
After a while, I made some more changes, added and committed them, then I tried to pull from the remote branch:
git pull origin my-other-branch
I got the error :
error: Failed connect to SERVER_NAME:443; Operation now in progress while accessing https://SERVER_NAME/projects/bank_project/repositories/git/bank/info/refs
fatal: HTTP request failed
Why do I get that error, where am I wrong?
(My Git version is 1.7.2.3, my OS is Linux/Ubuntu)
Here you will need to set up branch tracking. Please run the following
git branch --track my-other-branch origin/my-other branch
git pull origin my-otherbranch
这篇关于从远程分支中拉出时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!