How to pull a specific branch from Github

If you did a clone, then all branches should be available to you. You need to checkout the branch.

git checkout todo-mvvm-databinding

If the branch isn’t available for whatever reason, then you can create it and then pull it:

git checkout -b todo-mvvm-databinding (-b specifies “create branch”)

git pull origin todo-mvvm-databinding will fetch and merge this branch into your local one.

Leave a Comment