How to specify a branch for pull? #1471
-
I've been looking for the Python version of the following git command: Could someone please explain to me why the pull function doesn't have any parameter for this, and how can I specify the branch for the pull? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's possible to configure the refspec as first argument to |
Beta Was this translation helpful? Give feedback.
It's possible to configure the refspec as first argument to
pull
(as documented in the fetch method) can berefs/heads/local-branch:refs/heads/upstream-branch
to fetchupstream-branch
and bring it intolocal-branch
.