how to check out a repo code example Example: take clone from gitbash $ git clone https://github.com/libgit2/libgit2 mylibgit