How do I checkout a specific branch?

thanhthao

New member
How do I checkout a specific branch?
Answer
Then, do the following:
  1. Change to the root of the local repository. $ cd <repo_name>
  2. List all your branches: $ git branch -a. You should see something similar to the following: …
  3. Checkout the branch you want to use. $ git checkout <feature_branch>
  4. Confirm you are now working on that branch: $ git branch.
 

Tìm kiếm

Back
Top