git clone history explained code example Example: git clone repo with name git clone https://github.com/foo/repo_name.git new_directory_name