clone git repository command line code example
Example 1: git clone repo with name
git clone https://github.com/foo/repo_name.git new_directory_name
Example 2: git clone
git clone [email protected]:UserName/gitRepositories.git
Example 3: 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 4: take clone from gitbash
$ git clone https://github.com/libgit2/libgit2 mylibgit