Pull A Git Branch from Remote
Up until lately I have been improperly pulling my remote branches to local. What I mean is I create a new branch locally, push it to remote (GitHub) then pull it onto a designers computer with the following command
(this is not how to do it)
git checkout -b < new_branch >
git pull origin < new_branch >
So real world example would be
Obviously ‘newdesign’ is the branch name.
If you have trouble doing this with an error
Did you intend to checkout ‘origin/
Then try a git pull first.
In: Uncategorized · Tagged with: checkout, git, Pull, Remote Branch