[Git] Command to Pull Branch from Remote and Create Locally

Method 1 :

git checkout -b my_branch origin/my_branch

Method 2 :

git fetch —all
git checkout my_branch

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.