当前位置: 动力学知识库 > 问答 > 编程问答 >

git - Error when pull from remote branch

问题描述:

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
分享给朋友:
您可能感兴趣的文章:
随机阅读: