clone a old repository git url code example Example: take clone from gitbash $ git clone https://github.com/libgit2/libgit2 mylibgit