Answer the question
In order to leave comments, you need to log in
How to git pull a specific branch?
I am executing a command
git pull https://[email protected]/user/repository.git /home/myserver/public_html/mysite.com
Answer the question
In order to leave comments, you need to log in
git pull origin from:to
There is no concept of "pull into a directory" in git.
You must clone the repository, and it will already switch to the branch of interest to you.
Before starting work, you need to read the documentation, and not unconsciously drive in incorrect commands.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question