You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I checkout a branch?
I can open a repo, create a branch, stage changes, commit changes, but what I need to do is checkout an existing branch.
How do you do that?
You can use Repository.CheckoutTree() to checkout the files. If by "checkout a branch" you mean switch to that branch, you will also need to update HEAD, e.g. with Repository.SetHead()
Activity
carlosmn commentedon Feb 15, 2016
You can use
Repository.CheckoutTree()to checkout the files. If by "checkout a branch" you mean switch to that branch, you will also need to update HEAD, e.g. withRepository.SetHead()