You have the syntax wrong: it's git pull [ remote [ branch-name ] ]
, not git pull remote/branch-name branch-name
. In this case you would need git pull origin myBranch
.
That said, I recommend not using git pull
at all, at least not until you are very familiar with Git. The reason is that git pull
does two things, and the second thing it does is run git merge
, which:
- can fail to happen automatically, stop in the middle, and need help from you;
- produces "foxtrot merges", which are sort of backwards, whenever it makes a real merge;
- is usually better done as
git rebase
anyway.
The first half of git pull
is git fetch
, so you can just run git fetch
and then, after it succeeds, run either git merge
or git rebase
as desired. Both of these commands take much more sensible arguments than git pull
.
With git fetch
, you name the remote to fetch from, e.g., git fetch origin
(or just let git fetch
figure it out: git fetch
with no arguments will generally figure out to use origin
automatically).
With both git merge
and git rebase
, you name the origin/myBranch
remote-tracking branch, or just let Git figure it out, again.
All that also said, git pull
will usually figure all of these out on its own as well. In particular if git merge
or git rebase
can figure out to use origin/myBranch
, git pull
can figure out to use origin
and origin/myBranch
for its two steps.