- Notifications
You must be signed in to change notification settings - Fork 915
git checkout
Michael Maxwell edited this page Jan 5, 2021 · 4 revisions
$ git checkout <branch>
using(varrepo=newRepository("path/to/your/repo")){varbranch=repo.Branches[branchName];if(branch==null){// repository return null object when branch not existsreturnnull;}BranchcurrentBranch=Commands.Checkout(repo,branch);}