git cmd clone repository code example
Example 1: git clone repo with name
git clone https://github.com/foo/repo_name.git new_directory_name
Example 2: pull from existing git repo
git init .
git remote add origin [url of the repo]
git fetch origin
// To push
git push --set-upstream origin master
git branch -f master origin/master
Example 3: clone repository git
git clone https://[email protected]/teamsinspace/documentation-tests.git
Example 4: take clone from gitbash
$ git clone https://github.com/libgit2/libgit2 mylibgit